[thelist] Javascript image function

Chris spam at cimmanon.org
Wed Nov 10 09:13:46 CST 2004


On Wed, 10 Nov 2004 06:35:25 -0800, Demitrius <sbdemitrius at hotmail.com>  
wrote:

> ----- Original Message ----- From: "Courtenay" <court3nay at gmail.com>
> To: <thelist at lists.evolt.org>
> Sent: Tuesday, 09 November, 2004 00:54
> Subject: Re: [thelist] Javascript image function
>
>
>> Look into this.childNodes (or even this.innerHTML) instead of  
>> document.images.
>>
>>
>> c
>
> Okay, thanks! But does this work for all browsers?
>
> -Demitrius

No, it does not.  Netscape 6 & 7 do not support innerHTML, and I'm quite  
certain Mozilla does not either.  InnerHTML and innerText are IE  
proprietary and only a few browsers have chosen to implement them.  You  
must traverse the childNodes to get what you need.

-- 
chris


More information about the thelist mailing list