faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 7 people (86%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

How can I collect all the DIVs in a document?

Jun 20th, 2002 19:07
jsWalter,


In IE 4/5 I can do this...
    divArray = document.all.tags('div');
In NN4 I can do this...
    divArray = document.layers;
And in NN6 I thought I could do this, (but no)...
    divArray = document.getElementsByTagName('div');
Any one know how I can do this in NN6?
Walter