SWEngineer Posted July 22, 2010 Share Posted July 22, 2010 I'm new to Javascript, and just want to ask, what do we mean by document when we say for example: document.getElementById("xyz");Thanks. Link to comment Share on other sites More sharing options...
chibineku Posted July 22, 2010 Share Posted July 22, 2010 The word document refers to the document object, which lets you access the elements of the DOM (document object model) from within scripts, for example it contains references to every div, paragraph, image, etc. and lets you select them by using a variety of methods, such as getElementsByName() or images[], which returns an array of all the images in the page. Watch this space for better, fuller explanations from the pros. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.