File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Check whether page has scroll bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Check whether page has scroll bar" Watch "Check whether page has scroll bar" New topic

Check whether page has scroll bar

vasudevan ajay

Joined: Mar 15, 2007
Posts: 1
Dear all rangers,
Please can anyone of you tell me the Javascript code as to check whether the page has a scroll bar ?
The page uses a menu bar set on page load inside <body></body> tags. When a scroll bar appears the enitre table gets shifted to left BUT NOT THE menu bar leading to a space in between the table border and menu bar.

Please help me in this regard as I am already stuck in the project.

Ajay Vasudevan.
wood burning stoves
subject: Check whether page has scroll bar
Similar Threads
scrollbar in tiles
Printing with DIV tags
How can I get rid of the horizontal scroll bar, when using 800x600
Weired Behaviour in JSP Pages
equivalent of frames in struts