Previous Example-|-Next Chapter's Examples-|-Return to Chapter Listing

Example 2.12:
Automatically Forwarding--With a Confirm Dialog Box


You've just been automatically forwarded to this page from the last one.


This is the script we used: <SCRIPT LANGUAGE="JavaScript"> <!-- function redirect() { if (confirm ("The Web page has been moved. Please bookmark the new page, and ask the owner of the page you've come from to change the link. Click on OK to continue to the new page.")) { location='2-12A.htm' } } <!--End--> </SCRIPT> <BODY onload="redirect()">
Previous Example-|-Next Chapter's Examples-|-Return to Chapter Listing