Hi
Santosh,
Please do the following:
Javascript code
window.onscroll = function() {
var layer = document.getElementById('dvDynamicPostion');
layer.innerHTML += "\nscroll is at " + document.body.scrollLeft + " horizontally and " + document.body.scrollTop + " vertically.";
layer.style.position = 'absolute';
layer.style.top = '10px';
layer.style.left = '10px';
}
HTML code
<div id="dvDynamicPostion">
my position are always changed
</div>
Please do let me know, if you have any doubt.
Please provide "
Vote" if this would be helpful, and make "
Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen