document.all : all : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » all »

 

document.all












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















Method Description
item() Returns an HTML element based on element's name
tags() Returns an array of elements that have the specified tag















<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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» all