Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

trigger keyboard event javascript

// trigger when keydown
document.addEventListener('keydown', e => {
	// do some cool stuff
})

// trigger when keyup

document.addEventListener('keyup', e => {
	// do some cool stuff
})
 
PREVIOUS NEXT
Tagged: #trigger #keyboard #event #javascript
ADD COMMENT
Topic
Name
8+6 =