'blur()' Example : blur : Javascript Methods : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Methods   » [  blur  ]   
 



'blur()' Example

    
<html>
<body>
<script language="JavaScript">
function function1(){
   document.getElementById("myButton").blur();
   document.getElementById("myButton").innerText = "This button lost its focus";
   alert("The button lost its focus")

</script>
<input id="myButton" 
       type="button" 
       onclick="function1();" 
       value="Tab to put in focus." 
       onFocus="this.innerText='In focus. Click me to lose focus'">
</body>
</html>

    
      
      
Related examples in the same category
1.  'blur()' Syntax, Parameters and Note
2.  'blur()' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.