topical media & game development

talk show tell print

professional-javascript-14-DebugExample6.htm / htm

          <title>Debug Example</title>
          <script type="text/javascript">
                  function test_function() {
                      opera.postError("Entering function.");
                      var iNumber1 = 5;
                      var iNumber2 = 10;
                      opera.postError ("Before calculation.");
                      var iResult = iNumber1 + iNumber2;
                      opera.postError ("After calculation.");
                      opera.postError ("Leaving function.");
          <p>This example works in Opera only.</p>

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.