fetch-echo.html 274 B

12345678910
  1. <!doctype html>
  2. <html>
  3. <head><title>running</title></head>
  4. <body><script>
  5. window.onload = function () {
  6. const params = new URL(document.location).searchParams;
  7. fetch(params.get('url')).then(e => e.text()).then(text => document.title = text);
  8. };
  9. </script></body>
  10. </html>