we get the scroll Width in javascript Width : window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft; we get the scroll Height in javascript Height: window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
Liked By
Write Answer
how to get the scroll height and width in javascript?
Join MindStick Community
You have need login or register for voting of answers or question.
Amit Singh
01-Jan-2011Width : window.pageXOffset ||
document.body.scrollLeft ||
document.documentElement.scrollLeft;
we get the scroll Height in javascript
Height: window.pageYOffset ||
document.body.scrollTop ||
document.documentElement.scrollTop;