Anchor.y : Anchor : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » Anchor »

 

Anchor.y









Syntax








document.anchors[num].y



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












<html>
    <center><a name="B"><h4>B</h4></a></center>
    AAA<hr>
    <script language="JavaScript">
    <!--

    document.write("The y property is equal to ",document.anchors[0].y);

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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» Anchor