how to detetct backspace keybora input js code example
Example: javascript detect backspace
var input = document.getElementById('myInput');
input.onkeydown = function() {
var key = event.keyCode || event.charCode;
if( key == 8 ){
//backspace pressed
}
};