W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2004

Re: [techs] EXTENDED Techniques Teleconference 17 November 2004

From: Jim Ley <jim.ley@gmail.com>
Date: Sat, 20 Nov 2004 13:11:51 +0000
Message-ID: <851c8d3104112005115a4c26b6@mail.gmail.com>
To: "WAI GL (E-mail)" <w3c-wai-gl@w3.org>

On Sat, 20 Nov 2004 01:15:33 -0600, James Craig <wai-wg@cookiecrook.com> wrote:
> ----------------------------------------------------------------------
> Regarding 2.1 javascript: URIs (Example)
> 
> <a href="register.php" target="registerwindow"
>  onclick="window.open('',this.target);">register here</a>
> 
> Perhaps could be:
> 
> <a href="register.php" target="registerwindow"
>  onclick="window.open(this.href,this.target); return
> false;">registration</a>
> 
> Better yet, the return value should be determined by the pop-up
> function, so that certain pop-up blcokers don't deny access.

NO!  the first is clearly the correct method, you must not return
false from the onclick handler unless you know the window has
successfully been opened, there is no way to know this, it cannot be
determined by the pop-up function.

Jim.
Received on Saturday, 20 November 2004 13:11:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:32 GMT