Y (Function)

For elements with a normal position, this retrieves the relative y position of the element on the page. For elements with a different position style (absolute, fixed, relative), the set “top” property is returned as the y position. Settings the y position follows normal styling rules. Setting the y position to an element with a position of default will have no effect.


Y() : Number – Gets the set y position, in pixels, of the element based on style rules.

Y(Number pixels) : Element -  Sets the y position, in pixels, of the element,  following appropriate style rules.

Last edited Jan 28, 2011 at 1:10 AM by dahrkdaiz, version 1


No comments yet.