bmalehorn

1. Back is Forward

Did you know? Websites can edit the URL however they please:

window.history.pushState(null, "", "?page=1");

window.history.pushState(null, "", "/back-is-forward");

We can also listen on URL changes in the browser:

window.addEventListener("popstate", () => {
    window.location.href = "/up-is-down#top";
  });

Finally, press the back button in your browser to continue.

© 2023