You are here: Re: frames [lame] « HTML « IT news, forums, messages
Re: frames [lame]

Posted by Jake on 10/06/05 16:43

In message <8cl017tgs1aw$.3eo704fx0qax.dlg@40tude.net>, rf
<rf@invalid.com> writes
>Jake wrote:
>
>> I also make a practice of opening all external links in a new window. In
>> this case I avoid the use of a 'target' on the link by setting "
>> rel='external' " in the link and using a piece of Javascript to set the
>> 'target' based on 'rel'.
>
>So, you "validate" to the strict DTD and then use some javascript
>skulduggery to get around the fact that you are actually "realising"
>something that belongs in transitional

Nope.

With the removal of 'target' from the specifications, HTML is now
concerned more with the content of the page.

The 'rel' attribute on the link is valid HTML and is used to specify
the relationship between the page containing the link, and its target:
in this case, Javascript simply provides the implementation mechanism
when that target is a new window..

The js-deficient user, however, gets to see the content in the same
window -- 'graceful degradation', no?
>
>Why not simply accept the fact that you are intentionally doing one single
>thing that does not validate to a certain DTD?

Because it's not necessary, is it?
>
>> The pages can then be validated as '4.01 strict'.

>
>See above. Validation is not a requirement, nor a be all and end all, it is
>a handy tool. You *can* choose to ingore, knowingly, some validation
>errors.
>
>> (Users without Javascript enabled -- about 1%
>
>Other sources cite around 10 to 15%.

I just go by what I see -- about 1% or less. YMMV.
>
>> or less -- get to see the
>> external page in the same window.)
>
>Oh happy days. I am now going to disable javascript so *I* have the choice
>of opening your "external" link in a new window if *I* choose to (or not),
>not if *you* choose me to :-)
>
Isn't 'choice' wonderful?

There is, however IMO, one good reason for opening external links in a
new window: namely, you have no control over the content of the new
page.

Ever been to a site which, with badly-tested flash and/or javascript,
prevents the back-button from ever working?

If you're the user of an AT UA it's nice to be able to simply 'kill' the
offending (current) window and know that you're safely back where you
came from without having to reload the browser..

regards.

--
Jake (jake@gododdin.demon.co.uk -- just a 'spam trap' mail address)

 

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

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