Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript blur get new target

 p.addEventListener("blur", function(event) {
	console.log(event.relatedTarget); //this is the new target element
 });
//note: this only works if relatedTarget has tabindex propery list so:
//<div tabindex="0">click me</div>
 
PREVIOUS NEXT
Tagged: #javascript #blur #target
ADD COMMENT
Topic
Name
6+7 =