Created
September 25, 2020 12:48
-
-
Save Committing/ed8408e40315dd24a6bca1cf06685ed8 to your computer and use it in GitHub Desktop.
Refresh page based off of the url
This file contains 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
if (location.pathname=="/questions/2850467/if-the-url-contains-this-do-that-in-javascript") { | |
setTimeout(function(){ | |
location.reload(); | |
}, 3000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment