Handling onMouseOut or Links : Hyper Link Event « Event « JavaScript DHTML






Handling onMouseOut or Links

<HTML>
<HEAD>
<TITLE>Handling onMouseOut for links</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function advertiseLink() {
 alert("www.java2s.com")
 if(confirm("www.java2s.com?")) {
  window.location="http://www.java2s.com"
 }
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<H1>Handling onMouseOut for links</H1>
<P><A HREF="somewhere" ONMOUSEOUT="advertiseLink()">Tells you why you
should connect to this link.</A></P>
</BODY>
</HTML>

           
       








Related examples in the same category

1.Using onMouseOver and onMouseOut Event Handlers
2.Handling onClick or Links
3.Using Functions as Event Handlers
4.Using the Event Object with Navigator and Internet Explorer
5.Using the const Keyword
6.Using onClick and onDblClick Event Handlers