How to avoid navigate back when the user types backspace on a HTML text input?

Posted by Jader Dias on Stack Overflow See other posts from Stack Overflow or by Jader Dias
Published on 2009-07-21T02:02:34Z Indexed on 2010/05/28 8:51 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Backspace is the browser hotkey for Navigate Back To The Last Page. I know that when an input has the focus this hotkey is disabled. But I have keyup and keydown events binded to this input, and something I wrote is causing this trouble.

Do you know the solution?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery