function onWheel(e) { //if(e.preventDefault) e.preventDefault(); //else e.returnValue = false; return false; } window.addEventListener('MozMousePixelScroll', onWheel); window.onwheel = window.onmousewheel = onWheel;