Chapter 2: Start Me Up!

Return to Chapter 2

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Using JavaScript to Enhance Links

See it run: Using JavaScript to Enhance Links

Script 2.12

The HTML page for the link-enhancement example.

Script 2.13

This JavaScript allows you to perform an action after the user clicks a link, but before the browser goes to the link's destination.