Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript e.key

document.inputDiv.addEventListener('keyup', (e) => {
	console.log(e.key);
});

// Typing 'hello world' will log --> 'h' 'e' 'l' 'l' 'o' ' ' 'w' 'o' 'r' 'l' 'd';
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
1+6 =