Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: AW: Re: document.images


Message #1 by =?iso-8859-1?Q?Hans_J=F6rg_Friedrich?= <hans.friedrich@b...> on Tue, 26 Jun 2001 15:50:46 +0200
Hello Brian,

The term if(document.images) doesn't check for the length of the array.
It just checks, if the array exists (in the DOM of the browser).
Like if (document.layers) is used to check for netscape browsers (which
returns true, even if there are no layers used on the page).

-----Urspr=FCngliche Nachricht-----
Von: Brian Mains [mailto:bgmst5@y...]
Gesendet: Dienstag, 26. Juni 2001 15:05
An: javascript
Betreff: [javascript] Re: document.images


Hello,

It is weird to me too, but what is even weirder is it passes as true
even
though there are no images.  That is what is confusing me.
hans.friedrich@b...
$subst('Email.Unsub')


  Return to Index