Instantly share code, notes, and snippets.

@cwylie0 /redirect.js
Last active Jul 21, 2016

What would you like to do?
Page redirect using JavaScript
// similar behavior as an HTTP redirect
// similar behavior as clicking on a link
window.location.href = "";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment