1 <HTML> 2 <HEAD> 3 <TITLE>JavaScript Example: Event handlers</TITLE> 4 5 <SCRIPT LANGUAGE="JavaScript"> 6 <!-- hide script from old browsers 7 8 // Load NPAC home page: 9 function openLocation() { 10 window.location = "http://www.npac.syr.edu"; 11 } 12 13 // end script hiding --> 14 </SCRIPT> 15 16 </HEAD> 17 18 <BODY BGCOLOR="#FFFFFF"> 19 20 Look at the status bar as you move your mouse over this link: 21 <A HREF="javascript:openLocation()" 22 onMouseOver="self.status = 'Click to visit NPAC home page'; 23 return true" 24 onMouseOut="self.status = ''; return true">NPAC home page</A> 25 26 </BODY> 27 28 </HTML>