Re: A problem with an apparently common JS menu...
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: A problem with an apparently common JS menu...

From: Richard Cornford <Richard@litotes.demon.co.uk>
Date: Wed Nov 16 2005 - 00:56:18 CET

VK wrote:
<snip>
> Netscape 4.x is gone, but as a reminder document.layers are still
> supported (or at least do not return undefined > false) on some
> browsers, for example Netscape (what a surprise!) or Safari.

This statement is false. Anyone surprised by that?

<snip>
> 1. Remove all "if (document.layers) {...}" branches completely
> 2. Replace all "else if (document.all)" with "if
> (document.getElementById)"
> 3. Go through the text and replace all "document.all("
> strings with "document.getElementById("
> 4. Save and test.

Advice best considered with an eye to the veracity of the statement
above.

Richard.
Received on Mon Nov 21 03:30:49 2005