This script is really smart, yet also seems like a little bit of overkill. But to each their own. It's a script tester. You put in a script, press "Test", and you get a new window with the tested script. Here, copy this:
<A HREF="index.html" onClick="alert('you clicked')">Click</A>
...and paste it in to see it work. Then come back to:
Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.