Skip to content

Instantly share code, notes, and snippets.

@macmladen
Created August 19, 2019 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macmladen/e47415a95f93c6d78b7ddd959d60bb41 to your computer and use it in GitHub Desktop.
Save macmladen/e47415a95f93c6d78b7ddd959d60bb41 to your computer and use it in GitHub Desktop.
JavaScriptp HTTP like redirect
// similar behavior as an HTTP redirect
// window. object can be omitted
window.location.replace("https://nisville.com/");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment