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 Coder
    Join Date
    Jun 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    disable BACKSPACE button

    Hi,

    Is there any javascript to disable on pressing the BACKSPACE button on the keyboard. Something like disable the Right Click.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <head>
    <script>
    function key(e) {
    var k =
    document.layers ? e.which :
    document.all ? event.keyCode :
    document.getElementById ? e.keyCode : 0;
    if (k==8) {
    return false;
    }
    }
    </script>
    </head>
    <body onkeydown="return key(event);">
    </body>


  •  

    Posting Permissions

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