Re: [techs] EXTENDED Techniques Teleconference 17 November 2004

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 UTC