Romain wrote:
[color=blue]
> In article <bfs3ev02e08@drn.newsguy.com>,
> Lee <REM0VElbspamtrap@cox.net> wrote:
>
>[color=green]
>>If you're not concerned with validity, why not simply use target="_blank"
>>when you want a new window and target="_self" (or "_top") when you don't?
>>Then it will even work for people who have disabled JavaScript.[/color]
>
>
> Simply because I want this :
>
> <a href="link.html" class="external">the link</a>
>
> To be transformed into this :
>
> <a href="link.html" class="external">the link</a> (<a href="link.html"
> target="_blank">In a new window</a>)
>
> So that users can choose between opening a link in the same window, or
> not. And since all my "external" links already have the class="external"
> attribute that'll be VERY convenient instead of replace each and every
> link (above 5000).
>
> All this was clearly explained in my first thread, obviously you skipped
> that part.
>
> Oh, and by the way, I neither live in the US nor in the UK, I don't have
> a commercial web site, and I really don't care about ADA, DAA (american
> only RECOMMENDATIONS).
>
> <troll>ONU made recommendations about controling guns, kyoto agreements,
> not starting a war in Irak etc. USA (& UK) didn't care. Why should I
> care about USA (&UK) recommendations today ?</troll>
>
> I just want to offer a convenient (don't argue with that last personnal
> opinion please) way to choose between opeing a link in the same window,
> or in a new one, by LETTING the user do the choice.
>
> And for the accessibility concerned, doing so doesn't prevent disabled
> people to watch my web site (although I doubt that they will ever find
> an interest to "read" my thoughts and "watch" my pictures).
>
>
> R.[/color]
There is something better than target="_blank" (I am assuming here that
your website design justifies the use of popups and meets widely known
accessibility and usability requirements). Just give a name to the new
window (say, target="RequestedPopup") and then re-use the popup window.
I've coded requested popups before and I never ever saw the relevance of
creating new unnamed popup windows. Just allow the users to re-use the
same popup window, even if javascript is turned off. If you code
carefully, you can make your code robust, flexible and versatile so that
the user can open new unnamed popup windows (if this is what he really
wants and in as many new unnamed "_blank" popup windows as he wants) via
a right-click, open the referenced resource in a new tab or in the same
window... or open the reference resource in the same unique named
requested popup. The possibilities here are only limited by the browsers.
Here's a page allowing all this (use NS 7.1 or Mozilla 1.0+ to try all
alternatives):
http://www10.brinkster.com/doctorunc...ra702Bugs.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/