'onFocusIn' Example : onFocusIn « Event onMethod « JavaScript DHTML






'onFocusIn' Example

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

    
      
      








Related examples in the same category