Anchor.x : Anchor : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » Anchor »

 

Anchor.x









Syntax








document.anchors[num].x



The x property contains the x-coordinate of the anchor, in pixels, from the left edge of the document to the anchor.












<html>
    <center><a name="A"><h4>A</h4></a></center>

    <script language="JavaScript">
    <!--
    document.write("The x property is equal to ",document.anchors[0].x);

    //End Hide-->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» Anchor