Anchor.y (Property)

The Y location of the anchor within the document.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:Number primitive
JavaScript syntax:NmyAnchor.y
NmyAnchor.y = aValue
Argument list:aValueA new Y coordinate value

The Anchor.y property yields the pixel distance of the anchor from the top edge of the document. The vertical position of the object in the display is measured in pixels. You can use the x and y coordinates of the object as targets of the scrollTo() method for the window it lives in.

Warnings:

See also:Anchor object, Element.offsetTop, Location.y

Property attributes:

ReadOnly.