prevent-backspace

Prevents the backspace from navigating back in the browser.

npm install prevent-backspace
1 downloads in the last week
4 downloads in the last month

prevent-backspace

Is a client-side JavaScript component that prevents the backspace from navigating back in the browser.

You can use it with browserify or component.

Browserify

npm install prevent-backspace

Component

component install jprichardson/prevent-backspace

Example

var preventBackspace = require('prevent-backspace')
preventBackspace() //hitting `backspace` outside of input, select, or textarea will be swallowed

Credits

This originated from this question: http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back. I repackaged this answer and removed jQuery dependence.

License

(MIT License)

Copyright 2013, JP Richardson jprichardson@gmail.com

npm loves you