- From: Jim Ley <jim.ley@gmail.com>
- Date: Sat, 20 Nov 2004 13:11:51 +0000
- 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 UTC