Last active
May 21, 2020 16:49
-
-
Save AlphaBlossom/826fe6010229ade5a50c42375949b005 to your computer and use it in GitHub Desktop.
JS HTTP Redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Redirect website to new URL Right Away | |
window.location.replace("https://google.com"); | |
// Redirect website to new URL after 5 seconds | |
window.setTimeout(function(){ | |
window.location.href = "https://www.google.com"; | |
}, 5000); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment