TOC PREV NEXT INDEX

domref



anchors


anchors returns a list of all of the anchors in the document.

Syntax

a_list = document.anchors
 

Parameters

a_list is a nodeList of all of the anchor elements within the document

Example

if ( document.anchors.length >= 5 ) {
 
    dump("dump found too many anchors");
 
    window.location = "http://www.getoutahere.com";
 
}
 

 

Notes

For reasons of backwards compatibility, the returned set of anchors only contains those anchors created with the name attribute, not those created with the id attribute.

Specification

anchor
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX