Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check whether page has scroll bar

vasudevan ajay
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic