Documentation

offset

returns the position of an HTML element on the page

object offset(HTMLElement node);

Parameters

nodeHTMLElementan HTML element

Returns

objectthe position object

See also

Example

var elem = document.getElementById("myDiv")
webix.html.offset(elem); //returns {y:100, x:500} - the top and left absolute position

Back to top