You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
214 B

  1. <head>
  2. <link rel="stylesheet" href="css/style.css">
  3. </head>
  4. <h1>Single Page App</h1>
  5. <h2>Location: <span></span></h2>
  6. <script>
  7. document.querySelector('h2 span').textContent = window.location.pathname
  8. </script>