[thelist] Javascript for 'to top' if page is long, otherwise not
john at johnallsopp.co.uk
john at johnallsopp.co.uk
Fri Nov 18 10:34:17 CST 2005
Hi
I'd like a 'top' link at the bottom of pages which are longer than a
screen depth, but I'm not too hot with Javascript (more of a PHP typa
guy) and I've just looked through my (reasonably extensive) notes and
can't see what I need, which is, I think, a function to tell me
whether a window has displayed its scrollbars or not.
Ideally, my javascript would be:
If (this page is displaying its scrollbars)
{
print 'top' link;
}
Can anyone help me out with this?
Along the teach a man to fish mallarky, if there's a resource you tend
to turn to for such things I'd be grateful to hear of it.
Cheers
J
More information about the thelist
mailing list