How to get the Scroll height and Width in JavaScript !!
Interview question and answer by:
Puneet20884 | Posted on: 12/23/2009 | Category:
JavaScript Interview questions | Views: 3680 |
Answer:
Width : window.pageXOffset ||
document.body.scrollLeft ||
document.documentElement.scrollLeft;
Height: window.pageYOffset ||
document.body.scrollTop ||
document.documentElement.scrollTop;
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: