test-console.html 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE HTML>
  2. <html dir="ltr" xml:lang="en-US" lang="en-US"><head>
  3. <meta charset="utf-8">
  4. <title>Console test</title>
  5. <script type="text/javascript">
  6. var fooObj = {
  7. testProp: "testValue"
  8. };
  9. function test() {
  10. var str = "Dolske Digs Bacon, Now and Forevermore."
  11. for (var i=0; i < 5; i++) {
  12. console.log(str);
  13. }
  14. }
  15. function testTrace() {
  16. console.log("bug 1100562");
  17. console.trace();
  18. }
  19. console.info("INLINE SCRIPT:");
  20. test();
  21. console.warn("I'm warning you, he will eat up all yr bacon.");
  22. console.error("Error Message");
  23. </script>
  24. </head>
  25. <body>
  26. <h1 id="header">Heads Up Display Demo</h1>
  27. <button onclick="test();">Log stuff about Dolske</button>
  28. <button id="testTrace" onclick="testTrace();">Log stuff with stacktrace</button>
  29. <div id="myDiv"></div>
  30. </body>
  31. </html>