page :: Position

page(element) -> [Number, Number]

 

Returns the X/Y coordinates of element relative to the viewport.

 

Note that all values are returned as numbers only although they are expressed in pixels.


Prototype API 1.5.0 - prototypejs.org