how to get the scroll height and width in javascript?
Ask by Amit Singh
Updated 23 Sep 2020
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;