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

Re: Tree Navigation - Javascript

From: David Woolley <david@djwhome.demon.co.uk>
Date: Wed, 5 Dec 2001 21:32:03 +0000 (GMT)
Message-Id: <200112052132.fB5LW3A08009@djwhome.demon.co.uk>
To: w3c-wai-ig@w3.org
>  - you may want to put <A HREF="your link when JS is off" onclick=".. call JS 
> function to show page ...">

You should include:  return false;
at the end of onclick, especially if popping up.  I have a feeling that 
very early Netscape's don't honour return codes, so even this may not
help, and might be the semi-legitimate reason why most popups that
don't produce dead links through javascript: pseudo URLs, produce
them through illegal references to a null fragment (href="#") - on
the other hand, my other theory, that it is just to shut up validators,
may be right.

Without return false, the base window will go to the off link  and the
popup will go to the on resource.
Received on Wednesday, 5 December 2001 17:13:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:58 GMT