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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:15 UTC