'onFocus' Example : onFocus : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » onFocus »

 

'onFocus' Example



    
<head>
<script language="JavaScript">
function function1() {
    document.getElementById("myL").blur();
    alert("<A> element has received focus.");
    window.open("http://www.navioo.com""""")
}
</script>
</head>
<body>
<a id="myL" 
   href="http://www.navioo.com/" 
   target=_blank 
   onFocus="function1()">
    navioo.com
</a>
</body>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» onFocus