Method HTMLElement.getPosition
Get the absolute position of an element.
-
Syntax
Object HTMLElement.getPosition()
Return an object holding the x and y coordinate of the element in pixels relative to the top, left corner of the viewport. -
Return value
A custom object
owith 2 properties
o.x - The x - coordinate of the element.
o.y - The y - coordinate of the element.
- Resources See the EPE project page for information on how to use this object in Internet Explorer.
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
