wood burning stoves
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 Elasticsearch in Action this week in the Big Data 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
Author

Check whether page has scroll bar

vasudevan ajay
Greenhorn

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 ?
Requirement:
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.

Regards,
Ajay Vasudevan.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Check whether page has scroll bar