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: David Dorward <dorward@yahoo.com>
Date: Tue Nov 15 2005 - 22:28:08 CET

Bryan wrote:

> if (document.layers) {
> if (document.all) {

> maybe it's time for a new script

Lots of document.layers (NS4.x only) and lots of document.all (IE4 only[1]),
but not a lot of W3C DOM. It was time for a new script several years ago.

[1] Other browsers do support it, although I seem to recall that only IE
returns true if you test for it, other browsers assume that if you are
smart enough to test for support, then you are smart enough to use the W3C
DOM.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Mon Nov 21 03:30:38 2005