Check documentation for the latest version of dhtmlxSuite absTop DHTMLX Docs

absTop

returns top element position related to window

number absTop(string|number|HTMLElement obj);

Parameters

objstring|number|HTMLElementobject or id

Returns

numbertop element position

Example

var t = document.getElementById("someId");
var y = window.dhx.absTop(t);
 
// or
var y = window.dhx.absTop("someId");

Back to top