document.links.length : links « Document « JavaScript Tutorial






The length property contains the number of Link objects that are in the document.links array.

<html>
    <a href="http://www.java2s.com">B Page</a><br>
    <a href="http://www.java2s.com">A Page</a><br>
    <script language="JavaScript">
    <!--
    document.write(document.links.length," links.");
    -->
    </script>
    </html>








14.18.links
14.18.1.document.links
14.18.2.document.links.length
14.18.3.Get all links on a page
14.18.4.Change links