How can I check, if a scrollbar is visible?

Posted by brainfck on Stack Overflow See other posts from Stack Overflow or by brainfck
Published on 2010-05-28T09:42:21Z Indexed on 2010/05/28 9:51 UTC
Read the original article Hit count: 166

Filed under:

Hi,

I want to display a "Go to top"-Link on my website. This link should only be visible, if the vertical scrollbar is visible.

How can I do this using JavaScript?

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript