Handle input text field focus lost event - Javascript DOM

Javascript examples for DOM:Event

Description

Handle input text field focus lost event

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width"> 
   </head> 
   <body> 
      <input type="text" 
             class="btnText" 
             id="symptomSearch" 
             tabIndex="1" 
             placeholder="Type words to search from repertory" onBlur="SearchSuggestionAutocom()"> 
      <script>
function SearchSuggestionAutocom() {
     console.log('logged');
    };//from   w  w w .j av a 2s  .  c  o  m

      </script>  
   </body>
</html>

Related Tutorials