Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to see if user clicked key in js

document.addEventListener("keyup", function(event) {
    if (event.keyCode === 13) {
        alert('Enter is pressed!');
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: border react native 
Javascript :: add jquery to project 
Javascript :: lowercase or uppercase all strings in array javascript 
Javascript :: javascript loop FormData 
Javascript :: how to play jquery audio 
Javascript :: jquery input text value change event 
Javascript :: javascript-find-json-value 
Javascript :: how to get img dimensions from remote url js 
Javascript :: format percentage javacsript 
Javascript :: console.log object object 
Javascript :: nodejs make directory 
Javascript :: get page resolution jquery 
Javascript :: console group 
Javascript :: add select option javascript 
Javascript :: set padding jquery 
Javascript :: scoll a div to bottom in angular 
Javascript :: pass number as a prop in react 
Javascript :: jquery append text to div 
Javascript :: how to wait foreach javascript 
Javascript :: how to get a random element of an array javascript 
Javascript :: js is directory 
Javascript :: react eslint error missing in props validation 
Javascript :: how to use session using javascript 
Javascript :: angular viewchild input element value 
Javascript :: if string javascript 
Javascript :: javascript round float 
Javascript :: jest reset spy 
Javascript :: node js on ctrl c 
Javascript :: let count = 0;console.log(parseInt("count"+ 1)); 
Javascript :: javascript pad number with leading zeros 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =