Test of Debugging Window


this is a test.

 

  • Source

    <HTML>
    <HEAD><TITLE>Test of Debugging Window</TITLE>
    <SCRIPT>
    //open the debug window
    bug = window.open("","bug","status=0 toolbar=0 height=100 width=400");
       bug.document.write("<HTML><HEAD><TITLE>debug</TITLE></HEAD>");
       bug.document.write("<BODY><h1>debug output</h1><hr><PRE>");
    //function to write to debug window
    function debug(text) {
       bug.document.writeln(text);
    }
    a = 17.5;
    b = 29;
    c = "This is text";
    debug("Value of a is: " + a);
    debug("Value of b is: " + b);
    debug("Value of c is: " + c);
    </SCRIPT>
    </HEAD>
    <BODY>
    <h1>Test of Debugging Window</h1>
    <hr>
    this is a test.
    </BODY>
    </HTML>