with Tags:
event
X

Dojo >= 1.7 Kickstart |
Preventing backspace from navigating back in all the browsers
One of the requirements which you may face is preventing the backspace key from navigating back in the browser. This requirement can be achieved by listening on the keyboard keys in the browser and acting when the backspace key is pressed under the condition that the mouse cursor is NOT inside an input or a text area elements. Actually, you have to take care of the IE broken event model when you are implementing this feature. for example, the event.stopPropagation() method is not working in IE, adding to this, you have to get the keycode from... [More]
Tags:  prevent back ie chrome model window.event safari firefox event stoppropagation backspace navigation |