Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript detect escape key

document.addEventListener('keydown', function(event){
	if(event.key === "Escape"){
		//do something
	}
});
 
PREVIOUS NEXT
Tagged: #javascript #detect #escape #key
ADD COMMENT
Topic
Name
6+7 =