Mega Code Archive

 
Categories / JavaScript Reference / Javascript Collections
 

Anchors Example

<html> <body> <a href="http://www.rntsoft.com/" id="rntsoft">www.rntsoft.com</a> <input type="button"         value="Retrieve the number of anchors in this document"         onclick="alert(document.anchors.length);"> </body> </html>