Disable browser scrolling with the middle mouse scroll button
I have a flash element on my page that you interact with by using the middle mouse scroll wheel. The page is long. So when scrolling with the mouse wheel it interacts with the Flash element AND scrolls the browser window. Is there a way to disable browser scrolling while the Flash element is active? You can use: document.body.style.overflow=allowScroll?"":"hidden"; Where allowScroll is a boolean. daslicht <!-- disables browser mouse scrolling --> <script type="text/javascript"> if(window.addEventListener){ window.addEventListener('DOMMouseScroll',wheel,false); } function wheel(event) { event