WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: popup windows

for

From: Tim Beadle
Date: Feb 20, 2004 9:11AM


On Fri, Feb 20, 2004 at 03:38:17PM +0000, Ben Morrison wrote:
> You should use the pop up address as the url - incase javascript is turned
> off.
>
> <a href="popup.html"
> onclick="javascript:NewWindow('popup.html','popup',300,400,1);return
> false;">link text</a>

Even better:
<a href="popup.html"
onclick="javascript:NewWindow(this.href,'popup',300,400,1);return
false;">link text</a>

Then you only have to change the href once, should it need to change.

Tim
--
"Internet Explorer is like a box of chocolates. You never know what you're
gonna get." -- Sjors


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/