Izzy004 Izzy004 - 1 year ago 101
Javascript Question

Disable scrolling of a window in jQuery

I am using something like facebox, and want the main window scrolling bar to be disabled.
One catch though, There is a scroll bar inside the facebox component, which needs to be able to scroll.

What I am trying to fix is the following case:

when scrolling the internal scrolling element (inside facebox), when scroll ends, it scrolls the page down further.

Answer Source

do it in css:

body {
   overflow: hidden;

this would hide the scrollbar in the main window

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download