doc_watch-expression-button.html 634 B

1234567891011121314151617181920212223242526272829303132
  1. <!-- Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ -->
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8"/>
  7. <title>Debugger test page</title>
  8. </head>
  9. <body>
  10. <button onclick="start()">Click me!</button>
  11. <script type="text/javascript">
  12. function test() {
  13. var a = 1;
  14. var b = { a: a };
  15. b.a = 2;
  16. debugger;
  17. }
  18. function start() {
  19. var e = eval('test();');
  20. }
  21. var button = document.querySelector("button");
  22. var buttonAsProto = Object.create(button);
  23. </script>
  24. </body>
  25. </html>