<html>
<head>
<title>Abakada DHTML Demo: Using the anchors Collection</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="JavaScript">
<!--
function getAnchors ( ) {
var url = "This page contains the following anchors:\n";
for ( i = 0; i < document.anchors.length; i ++ )
url += "\n" + document.anchors [ i ].name;
alert ( url );
}
//-->
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><a name="header"></a><h2>Abakada DHTML Tutorials</h2></div>
<div class="header"><a name="subheader"></a><h3>Using the anchors Collection</h3></div>
<hr size=1 width=92%>
<center>
<p id="msg">This example shows how the <b>anchors</b> collection is used to return the <b>name</b> values of all the <b>A</b> elements in this document whose <b>name</b> attribute has been set. </p>
<p><input type="button" value="Get Anchors" onclick="getAnchors ( )"></p>
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>