Answers for "textbox lost focus event in javascript"

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
3

javascript select input text on focus

focusMethod = function getFocus() {           
  document.getElementById("myTextField").focus(); //select the input textfield and set the focus on it
}
Posted by: Guest on November-28-2020

Browse Popular Code Answers by Language