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

Re: [techs] EXTENDED Techniques Teleconference 17 November 2004

From: James Craig <wai-wg@cookiecrook.com>
Date: Sat, 20 Nov 2004 11:57:17 -0600
Message-Id: <9DEBB17E-3B1D-11D9-AA16-0030658DC2A8@cookiecrook.com>
Cc: Jim Ley <jim.ley@gmail.com>
To: WAI GL <w3c-wai-gl@w3.org>

James Craig wrote:

>> Better yet, the return value should be determined by the pop-up
>> function, so that certain pop-up blockers don't deny access.

To which Jim Ley replied:

> 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.

Sure it can. By assigning the window.open() return value to a variable, 
the script has a reference to the new window object. The pop-up 
function can then check to see if the new window exists before sending 
its return value to the calling link.

There is a working version here.

Along with a commented script file:

And more explanation of the problem and solution:

James Craig

PS. Can we just completely remove the 'target' attribute from that 
Techniques example (2.1)? Isn't it invalid XHTML 1.1 and 1.0 Strict?

Received on Saturday, 20 November 2004 17:57:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:59:33 UTC