On Mar 30, 9:11 am, unbewusst.s...@wortanschahung.com.invalid (Une
Bévue) wrote:
> > You can call document.images.length and if it returns 0 then there are
> > no images, if it returns >= 1 then there are.
[quoted text clipped - 8 lines]
> --
> Une Bévue
Maybe I'm weird, but I wouldn't expect them to. I would expect to get
a array of <img> tags...the same as calling
document.getElementsByTagName('IMG').
I was unaware that the OP was looking for something different. He said
he was looking for image elements....
Randy Webb - 30 Mar 2007 19:02 GMT
Tom Cole said the following on 3/30/2007 11:41 AM:
> On Mar 30, 9:11 am, unbewusst.s...@wortanschahung.com.invalid (Une
> Bévue) wrote:
[quoted text clipped - 12 lines]
>
> Maybe I'm weird, but I wouldn't expect them to.
It doesn't.
> I would expect to get a array of <img> tags...the same as calling
> document.getElementsByTagName('IMG').
Pretty much what it gives when you do something like:
allImages = document.images;
> I was unaware that the OP was looking for something different. He said
> he was looking for image elements....
No, he was asking for clarification of what the posted code did.

Signature
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/