Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prevent blur event on click

let elPreventBlur = document.getElementById(...);
elPreventBlur.addEventListener('blur', (ev) => { 
  		// Prevent the browser default handler
		ev.preventDefault();
        
        ...
        // additional code if required
        ...
});
 
PREVIOUS NEXT
Tagged: #prevent #blur #event #click
ADD COMMENT
Topic
Name
3+1 =