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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    São Paulo, Brazil
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to disable F11-button?

    Hi,
    does anyone know how to disable the F11-button to prevent the browser to maximize(IE)?

    I have a window without back-button, menus, etc. When I press F11 the window maximizes and all these options are suddenly available.

    I only need to solve for IE5.5 and above.

    Thanx in advance.
    /Daniel

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this should work!

    <SCRIPT>
    document.onkeydown = function ()
    {
    if (122 == event.keyCode)
    {
    event.keyCode = 0;
    return false;
    }
    }
    </SCRIPT>
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    São Paulo, Brazil
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yup, that's it.

    Thanx man!
    /Daniel


  •  

    Posting Permissions

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