David Gravereaux wrote:
Doesn't print to the java console in either IE6 or FF1.5
Is there a better way aside from alert()?
Firefox:
Tools > JavaScript Console
Opera:
Tools > Advanced > JavaScript console
Internet Explorer:
Install JScript Debugger from:
<http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&DisplayLang=en>
After that you can use JScript [Debug] object wich represents dubugger
output and [debugger] statement which is equivalent of breakpoint:
for(i = 1; i<5; i++) {
// Print i to the Output window.
Debug.write("loop index is " + i);
// Wait for user to resume.
debugger
}