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);
objstring|number|HTMLElementobject or id
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