Back key in the browser defaults to click the Back button, below for you to introduce how to achieve the implementation of IE under the backspace equivalent to return operation, the need for friends can refer to the
In fact, said disable is not completely disabled, the back key in the browser defaults to click the Back button, as long as the normal text input can also be used, in other cases the BACKSPACE key is banned. See jquery Implementation code: The code is as follows: $ (function () {function Dokey (event) {var ele = Event.target; var elename = Ele.nodename; var flag = true; if (elename== "INPUT" | | elename== "TEXTAREA" | | elename== "SELECT") {var re = $ (ele). attr ("ReadOnly"); if (re) {flag = true; }else{flag = false; } if (Event.which==8&&flag) {event.preventdefault (); Event.stoppropagation (); } $ (document). KeyPress (Dokey). KeyDown (Dokey); });