'onFocusOut' Example : onFocusOut « Event Handlers Reference « JavaScript Reference

'onFocusOut' Example

    
<html>
<head>
<script language="JavaScript">
    function function1() {
        alert("<a> element lost focus") 
    } 
</script>
</head>
<body>
    <a id="myL" href="http://www.java2s.com/" target=_blank 
       onfocusout="function1()">java2s.com
    </a>
</body>
</html>

    
      
      








Related examples in the same category

1.'onFocusOut' Syntax and Note
2.'onFocusOut' Properties
3.'onFocusOut' is applied to