RE: JavaScript error
by =?iso-8859-1?Q?St=E9phane?= Bergeron <stephberg(at)videotron.ca>
|
Date: |
Mon, 26 Jun 2000 13:26:08 -0400 |
To: |
hwg-techniques(at)hwg.org |
In-Reply-To: |
hotmail |
|
todo: View
Thread,
Original
|
|
At 03:41 PM 26/06/00 +0000, you wrote:
>>Or are they just doing away with those collections for the sake of
>>document.getElementById?
>
>Yep.
>
>document.layers['layername'] for NN4,
>document.all['layername'] for IE4/5 and
>document.getElementById('layername') for IE5 and NN6 (yes, IE5 supports=20
>two DOM's).
It should also be noted that the NS DOM is not based on a flat model like=20
IE's or the W3C's. If you have a layer nested within another layer, you=20
have to access it this way in NS 4.x:
document.layers['layer1_name'].document.layers['layer2_name']
... and on and on for every level of nesting... cumbersome to say the=20
least. In IE and NS 6 you can access any ID'd element by name directly=20
which makes a lot more sense.
HTH!
St=E9phane Bergeron
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA