Answers for "how to check if a key is clicked javascript"

1

how to see if user clicked key in js

document.addEventListener("keyup", function(event) {
    if (event.keyCode === 13) {
        alert('Enter is pressed!');
    }
});
Posted by: Guest on April-25-2021

Code answers related to "how to check if a key is clicked javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language