Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scroll height 1

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

How do you determine how far someone has scrolled on the page,

does window.scrollheight or anything like that exist. What I mean is how far the scroll bar is from the top of the page is all,

Thanks,

Time To Sleep,

Tony "Java?? Umm, I think that's the stuff I drink while I'm coding perl."
 
document.scrolltop

works in IE -- not sure of NS, though.

:)
Paul Prewett
 

Sweet, works like a charm,

This was my test,

<script>
function Scroll(){
alert(document.body.scrollTop);
}
setTimeout(&quot;Scroll()&quot;, 5000);
</script>


Thanks,

Tony &quot;Java?? Umm, I think that's the stuff I drink while I'm coding perl.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top