index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Simple HTML Example</title>
  6. <style>
  7. iframe {
  8. width: 100%;
  9. height: 300px;
  10. }
  11. </style>
  12. <script>
  13. window.addEventListener("error", function (event) {
  14. if (true) {
  15. console.log("Intercepted missing script: ", event.target.src);
  16. event.preventDefault(); // Prevents default error logging
  17. event.stopPropagation();
  18. return true;
  19. }
  20. }, true);
  21. window.onerror = function (message, source, lineno, colno, error) {
  22. if (true) {
  23. console.log("Intercepted a 404 error, hiding it.");
  24. return true; // Prevents logging to the console
  25. }
  26. return false; // Allows other errors to be logged
  27. };
  28. console.error = () => {
  29. console.log("err RUN")
  30. }
  31. </script>
  32. <script src="/t.js"></script>
  33. <script src="/t1.js"></script>
  34. </head>
  35. <body>
  36. <h1>Welcome Parent VS CODE PAGE</h1>
  37. <!-- <iframe src="/iframe.html"></iframe> -->
  38. </body>
  39. </html>