Answers for "js observe elemnt with focus"

0

Javascript find element with focus

var currentElementWithFocus=document.activeElement;
Posted by: Guest on July-23-2019
0

javascript on focus lost

<input type="text" onfocusout="myFunction()">
<script>
  function myFunction(){
 	console.log("Focus Lost!") 
 }
</script>
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language