Sometimes there’s a need to reload the page with JavaScript. There’s a built in method for that! Just use:

window.location.reload()

Related posts:

  1. Read The Anchor Part of The URL … with PHP
  2. Scroll the page with JavaScript
  3. javascript: detect browser speed and load the “slow connection” site version