Answers for "how to detect escape characters in javascript"

5

javascript detect escape key

document.addEventListener('keydown', function(event){
	if(event.key === "Escape"){
		//do something
	}
});
Posted by: Guest on November-12-2019
5

js escape characters

JS Escape Characters
\' — Single quote
\" — Double quote
\\ — Backslash
\b — Backspace
\f — Form feed
\n — New line
\r — Carriage return
\t — Horizontal tabulator
WebsiteSetup.org - Beginner’s Javascript Cheat Sheet 7
\v — Vertical tabulator
Posted by: Guest on January-04-2021

Code answers related to "how to detect escape characters in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language