Syntax
document.all[index]
The document.all property is an array of all the HTML elements that are in the document.
The elements appear in the array in the order in which they were created.
Methods Associated with the document.all Array
<html> <a name="Paint"><h2><u>Paint Colors</u></h2></a> Red<br> Green<br> Blue<br> Orange<br> <hr> <script language="JavaScript"> <!-- document.write("<a href='#",document.all[4].name,"'>"); document.write(document.all[4].name,"</a>"); --> </script> </html>