Re: About the DOM document object
- From: Patient Guy <sevisen.adam@gmailDOTHEREcom>
- Date: Sat, 31 Mar 2007 08:22:02 GMT
"Draenox@xxxxxxxxx" <Draenox@xxxxxxxxx> wrote in comp.lang.javascript:
In an if statement with "document.images" as it's expression, does it
simply check if there are any image elements in an HTML page? I'm
assuming if it finds any that the expression will return true and
execute the statements within the if.
if(document.images)
{
// various statements....
}
Since the 'images' property is an array ("collection"?), I would guess that
if you really wanted to find a condition in which there are images truly in
the document, why not evaluate: if (document.images.length > 0)
.
- References:
- About the DOM document object
- From: Draenox@xxxxxxxxx
- About the DOM document object
- Prev by Date: Re: Using drop down to chagnge value of hidden form field
- Next by Date: Re: FAQ Topic - How do I direct someone to this FAQ?
- Previous by thread: Re: About the DOM document object
- Next by thread: FAQ Topic - How do I direct someone to this FAQ?
- Index(es):
Relevant Pages
|