34,333
edits
Changes
→Getting a list of objects in a document
</pre>
=== Getting a list List of objects Objects in a document Document ===
A typical web page can contain a number of other object types, such as links, anchors, images and Java applets. A number of the proerties listed in the table above consist of arrays containing a list of objects of a particular type (for details on arrays see [[JavaScript Arrays]]) which can be accessed to get a list of objects present in a document. For example the ''links'' property can be used to obtain a list of Link objects in the current document: