Anchor Overview

[Total: 0    Average: 0/5]

A “anchor” is the target of a hypertext link.

Body Code:

<a name="thisone">first anchor</a>
<a name="thatone" href="javascript:doIt()">Get Data</a>
<script type=text/javascript>
function doIt() {
  alert("name="+document.anchors[0].name+"ntext="+
                document.anchors[0].text+"nx pos="+
				document.anchors[0].x+"ny pos="+
				document.anchors[0].y+"noffsettop="+document.anchors[0].offsetTop);
}
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *