Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Prevent history Scroll (shift key + mouse scroll) in IE

    Is there a way in which we can disable the history scroll functionality in IE? Basically disable the SHIFT key + Mouse Scroll combination.
    Thanks.

  • #2
    New Coder
    Join Date
    Mar 2006
    Location
    São Paulo, Brazil
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think this can help you:
    http://ajaxian.com/archives/javascript-and-mouse-wheels

    To block the shift key, use this:

    Code:
     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! =)
    ----
    As coisas mais simples são as mais importantes.
    ---------
    Thompson M1A1: D-Day
    ----------------


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •