Firefox has a potpourri of small tricks you can use to debug your web page.
These old saws have been supported by most web browsers for a long time. Here they are again, for completeness. First, some common tripping points:
and JSP. Use
nothing in PHP,
my in Perl, and
int or another type in JSP.
AutoConfig, and preference files—the
alert() spits out a string of text in a small window, just as
MessageBox does under Win32 for
Visual Basic and related languages. It also suspends all script
alert() is a property
window DOM 0 object in
both HTML and XUL scripts. Here's that trivial tool at work:
var result = 5; alert("Result times 100: " + (result *100)); // or use window.alert( )