...

View Full Version : Prevent history Scroll (shift key + mouse scroll) in IE



mccannc
01-03-2007, 12:29 PM
Is there a way in which we can disable the history scroll functionality in IE? Basically disable the SHIFT key + Mouse Scroll combination.
Thanks.

Thompson
01-04-2007, 03:34 PM
I think this can help you:
http://ajaxian.com/archives/javascript-and-mouse-wheels

To block the shift key, use this:



function browse(e)
{
if(!e)
e = window.event;

var shft = e['shiftKey']; //shift key. returns true or false
if( shft )
return false;
}
document.onkeydown = browse;



Hope this can be useful for you! =)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum