redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

gitting a collection to all DIV elms working in all browsers



 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Jackil



Joined: 24 May 2006
Posts: 97
Is there a way of getting a collection to all DIV elements on a website that works in all (most) browsers?
  Reply with quote


Peter Pitt



Joined: 20 May 2006
Posts: 114
Location: Egypt
Document.getElementsByTagName('div')
  Reply with quote
Jackil



Joined: 24 May 2006
Posts: 97
That works in ff too?
  Reply with quote
Peter Pitt



Joined: 20 May 2006
Posts: 114
Location: Egypt
Tias
  Reply with quote
Jackil



Joined: 24 May 2006
Posts: 97
Does javascript have hash lists?
  Reply with quote
Peter Pitt



Joined: 20 May 2006
Posts: 114
Location: Egypt
No
  Reply with quote
Jackil



Joined: 24 May 2006
Posts: 97
That allows strings as indexes
  Reply with quote
Peter Pitt



Joined: 20 May 2006
Posts: 114
Location: Egypt
But you can create objects which work similarly
  Reply with quote
Jackil



Joined: 24 May 2006
Posts: 97
how do i define an object
  Reply with quote
Peter Pitt



Joined: 20 May 2006
Posts: 114
Location: Egypt
Simplest way is var x = { 'key' : value, 'key2' : value2 };
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group