WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: popup windows

for

From: Keith Patton
Date: Feb 20, 2004 9:18AM


Hi,
Don't forget to also include onkeypress as well as onlick, i double up all
these type of links to make sure they work with keyboard and mice.

Keith Patton
Technical Director
Ethical Media
www.ethicalmedia.com


-----Original Message-----
From: Tim Beadle [mailto: <EMAIL REMOVED> ]
Sent: 20 February 2004 16:02
To: <EMAIL REMOVED>
Subject: Re: popup windows


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/


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