Answers for "how to see if user clicked key in js"

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 see if user clicked key in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language