Answers for "javascript on backspace"

2

how do i backspace from javascript calculator

function backSpace(){
    screenView.value = screenView.value.slice(0, - 1);
}
Posted by: Guest on June-24-2020
0

javascript detect backspace

var input = document.getElementById('myInput');
input.onkeydown = function() {
    var key = event.keyCode || event.charCode;
    if( key == 8 ){
    	//backspace pressed
    }
};
Posted by: Guest on January-17-2020

Code answers related to "javascript on backspace"

Python Answers by Framework

Browse Popular Code Answers by Language