Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

blur js

var form = document.getElementById("form");
form.addEventListener("focus", function( event ) {
  event.target.style.background = "pink";
}, true);
form.addEventListener("blur", function( event ) {
  event.target.style.background = "green";
}, true);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #blur #js
ADD COMMENT
Topic
Name
7+1 =