Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript on enter

var el = document.getElementById("textarea")

el.addEventListener("keydown", (e)=>{
	if(e.key === "Enter"){
    	// do something here
    }
})
 
PREVIOUS NEXT
Tagged: #javascript #enter
ADD COMMENT
Topic
Name
3+7 =