We Really Think You Should Check out This Cool Page!

The current page and link above demonstrate using an onMouseOver event handler for a link. It will display a message box the first time you pass over the link. After closing the message box, you can go back and click the link again to see the page. You could change the doSomething function to do anything you wanted when a user passed over the link. Here is the source code:

<HTML>
<HEAD>
    <SCRIPT LANGUAGE="JavaScript">
<!--
var didIt = false;

function doSomething() {
     if (didIt==false) {
          didIt=true;
          alert("Go back and follow that link!");
     }
}

// -->
    </SCRIPT>
</HEAD>

<BODY>
<H3>We think you should really check out this 
    <A HREF="http://msdn.microsoft.com/workshop/essentials/webmen/samples/coolpage.htm" 
  onMouseOver="doSomething()">cool page!</A></H3>
</BODY>
</HTML>

© 1999 Microsoft Corporation. All rights reserved. Terms of use.