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

Example 15.21:
Confirmation Box on a Link

[This example works with Netscape Navigator 3 and Internet Explorer 3.]

When you click on the link, you'll see a Confirmation box:

The Naughty Bits


This is the script we used: <A HREF="adult.htm" onclick="return confirm('Remember, this page is for adults only. If you are under 18 or living in an area where such images are illegal, please do not continue. Click on Cancel to stop the transfer, or OK to go to the page.')">The Naughty Bits</a>
Previous Example-|-Next Example-|-Return to Chapter Listing