Location-set-invalid-href-url.html 237 B

12345678910
  1. <script src="../include.js"></script>
  2. <script>
  3. test(() => {
  4. try {
  5. location.href = 'http://@:www.invalid-url.com';
  6. } catch (e) {
  7. println(`Error setting href: ${e}`);
  8. }
  9. });
  10. </script>