Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Enumerate through element in NS 6/7
- From: javascript@xxxxxxxxxx (Hassan Schroeder)
- Subject: [Javascript] Enumerate through element in NS 6/7
- Date: Mon, 21 Oct 2002 10:38:36 -0700
Reuben D. Budiardja wrote:
> In NS4, I can accessing layer element (eg <DIV>) using
> document.layers[index]
> This works in Mozilla, NS 6/7, and IE > 5.5 I think. The former does not work
> in Mozilla, NS 6/7. So how can I iterate through element using the similar
> way with document.layers[index] for those newer browser?
You can build an equivalent array using something like
var allDivs = document.getElementsByTagName("div");
HTH!
--
Hassan Schroeder ----------------------------- hassan@xxxxxxxxxxxxxx
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
--- ---
--- dream. code. ---
- References:
- [Javascript] Enumerate through element in NS 6/7
- From: Reuben D. Budiardja
- [Javascript] Enumerate through element in NS 6/7
- Prev by Date: [Javascript] Buscas amigos.....
- Next by Date: [Fwd: [Javascript] moving layers in NN 6]
- Previous by thread: [Javascript] Enumerate through element in NS 6/7
- Next by thread: [Javascript] Enumerate through element in NS 6/7
- Index(es):