Disable browser window scrolling of any kind?
css, gwt, html, javascript
Solution
based on your answer to Keit you dont want to scroll be active when you have a lightbox open? if that is the case you can add a class to the body at the same time as you open the lightbox with the following css
And the nice thing about this solution it keeps the scroll "space" so the site do not jump, its more like it disables it. hope this helps
body.noscroll
{
position: fixed;
overflow-y: scroll;
width: 100%;
}
$('body').addClass('noscroll');
$('body').removeClass('noscroll');
Problem
Is there a way to disable scrolling? Not just the scrollbar, but the entire functionality from the browser window?