Javascript Reference
Categories: document

javascript document anchors[ ]

@March 15, 2008, 1:22 a.m.
anchors[ ] Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1

Returns an array of all anchor objects in the current document. This includes a elements that are designed as either anchors or combination anchors and links. Items in this array are indexed (zero-based) in source code order.

 
Example
 
var aCount = document.anchors.length;
 
Value

Array of anchor element objects.

 
Default

Array of length zero.


Powered by Linode.