Anchor.x (Property)

The X location of the anchor within the document.


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

The Anchor.x property yields the pixel distance of the anchor from the left edge of the document. The horizontal 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.


See also:Anchor object, Element.offsetLeft, Location.x

Property attributes: