Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to see if user clicked key in js

document.addEventListener("keyup", function(event) {
    if (event.keyCode === 13) {
        alert('Enter is pressed!');
    }
});
 
PREVIOUS NEXT
Tagged: #user #clicked #key #js
ADD COMMENT
Topic
Name
2+7 =