errors.html 297 B

123456789101112131415
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. window.ERRORS = [];
  6. window.onerror = function(e) {
  7. window.ERRORS.push(e);
  8. };
  9. </script>
  10. </head>
  11. <body>
  12. <input type="button" value="Throw!" onclick="throw Error('boom!');"/>
  13. </body>
  14. </html>