Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

listen on contenteditable

<!---- JavaScript: Listen on `contenteditable` changes ----------------->

<div contenteditable>Change me</div>
<script>
document.querySelector("div").addEventListener("input", e =>{
	console.log( "Content edited: ", e.currentTarget.textContent );
});
</script>

<!---- JavaScript: Listen on `contenteditable` changes ----------------->
 
PREVIOUS NEXT
Tagged: #listen #contenteditable
ADD COMMENT
Topic
Name
1+3 =