Mega Code Archive

 
Categories / JavaScript DHTML / Javascript Objects
 

Use document links collection

<html> <head> <title>Reference</title> </head> <body> <a href="http://www.rntsoft.com">rntsoft.com</a> <p> <script type="text/javascript"> for (var i = 0; i < document.links.length; i++) {   var link = document.links[i];   document.writeln(link.title + " : " +  link.href + "<br />"); } </script> </p> </body> </html>