Answers for "how to get on key listen on javascript"

14

js when key is pressed

document.addEventListener("keypress", function(event) {
	// do stuff
});
Posted by: Guest on March-08-2020
10

html onkeypress

<input type="text" onkeypress="myFunction()">
Posted by: Guest on July-10-2020

Code answers related to "how to get on key listen on javascript"

Browse Popular Code Answers by Language