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