Previous Example-|-Next Example-|-Return to Chapter Listing

Example 12.5:
onmouseover: An Alert Box on a Link


If you clicked on the OK button in the last page, you came to this page.


This is the script we used in the previous page. First, this script in the HEAD: <SCRIPT LANGUAGE="JavaScript"> <!-- function confirmMove() { if (confirm("Are you sure you want to use this link? I really don't think you should. Well, if you insist, click on OK and I'll take you to the referenced page. Otherwise click on Cancel and leave the link alone!")) { location='12-5a.htm' } } //--> </SCRIPT> This is the link we created: <A HREF="12-5A.HTM" onmouseover="confirmMove()">Click right here. <I>Not!</I></A>
Previous Example-|-Next Example-|-Return to Chapter Listing