View Full Version : I was wondering (Re Scrolling)

07-03-2003, 12:11 AM
I was wondering if there was a way to check and see if someone is needing to scroll on your page (if the page is longer then the information on the page) I am useing database entry (ASP) and on the page will show all the information in the field according to the first letter ext.. so say one field has 3 articles then of course in a page thats 1024*768 no scrolling needed but at say 800*600 scrolling would be needed now I want to add html at the bottem of the page that says click here to goto the top useing the #top ancor but if the person doesnt need to scoll I dont want the click here to goto the top to show up as if it was never part of the page???? :confused:

Any thoughts?? :cool:

Any Scripts??? :D

Graeme Hackston
07-03-2003, 12:09 PM
something like this

if (document.body.clientHeight < document.body.scrollHeight) {
// page scrolls

07-03-2003, 08:31 PM
That works Perfectly :)