web hosting and development forums
Web Design and Development Forums Archive


Index - JavaScript forum

gitting a collection to all DIV elms working in all browsers


Post reply

Is there a way of getting a collection to all DIV elements on a website that works in all (most) browsers?
Document.getElementsByTagName('div')
That works in ff too?
Tias
Does javascript have hash lists?
No
That allows strings as indexes
But you can create objects which work similarly
how do i define an object
Simplest way is var x = { 'key' : value, 'key2' : value2 };




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com