Debugging JavaScript with Firefox, Firebug, and also IE!

Firefox

To see the debugging output, in Firefox (1.5-2.0 at this time) you have to download and install the excellent Firebug extension.

Once installed, open the debugging console which typically appears as a pane down at the bottom of the browser window.

Internet Explorer

In IE, simply click the button.

Article Link

The script and a test script.