Answers for "document onkeypress"

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
0

onkeypress

function searching(){
    var keywordsStr = document.getElementById('keywords').value;
    var cmd ="http://XXX/advancedsearch_result.asp?language=ENG&+"+ encodeURI(keywordsStr) + "&x=11&y=4";
    window.location = cmd;
}
Posted by: Guest on September-25-2021

Browse Popular Code Answers by Language