You are here: Re: converting to STRICT (href values and target attribute) « HTML « IT news, forums, messages
Re: converting to STRICT (href values and target attribute)

Posted by petermichaux on 10/01/06 02:11

dorayme wrote:
> In article
> <1159665105.259688.133730@m7g2000cwm.googlegroups.com>,
> petermichaux@gmail.com wrote:
>
> > I am converting an old page to STRICT.
> >
> > When validating the page I learned that I can't have a link like the
> > following. The '&' and '=' characters are not allowed? How can I make
> > this link validate?
> >
> > <a
> > href="http://www.foo.com/cgi-bin/test.pl?ACCOUNT=1006458&THE_BUTTON=display_pa
> > ge&PAGE_TYPE=MI_PPC#ASDF">
>
> Best to post the url for this as email and ng postings can pay
> tricks on url presentations

I'm not sure what you mean. The URL has a '?' followed by parameters
like this

ACCOUNT=1006458&THE_BUTTON=display_page

http://www.foo.com/cgi-bin/test.pl?ACCOUNT=1006458&THE_BUTTON=display_page&PAGE_TYPE=MI_PPC#ASDF

The ampersands and equals signs are apparently not allowed with the
strict doctype.


> > I also learned that I can't use the "target" attribute in STRICT pages
> > like the following. What do I do to get around this? Do I have to write
> > JavaScript in the onclick attribute? That wouldn't be so good if
> > JavaScript is off.
> >
> > <a href="http://www.7Search.com/" target="new">7Search.com</a>
> >
>
> Not heard of "new" as a value here? Don't use strict if you need
> target. You using frames?

I'm not using frames. The target is for a new window that may already
be open. For example, if I have the following in a page then the first
click opens a new window. More clicks change that same new window.

<p><a href="http://www.google.com" target="foo">google.com</a></p>
<p><a href="http://www.yahoo.com" target="foo">yahoo.com</a></p>

How to convert this kind of behavior to strict doctype?

Thanks,
Peter

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация