JavaScript DHTML/Event onMethod/onFocusIn

Материал из Web эксперт
Перейти к: навигация, поиск

"onFocusIn" Example

   <source lang="html4strict">
   

<html> <head> <script language="JavaScript">

   function function2() {
       alert("<a> element will receive focus") 
   }

</script> </head> <body>

   <a id="myL" 
      href="http://www.wbex.ru" 
      target=_blank 
      onfocusin="function2()">
   www.wbex.ru
   </a>

</body> </html>


     </source>