Created
December 20, 2012 14:31
-
-
Save digitup/4345596 to your computer and use it in GitHub Desktop.
JS - Check URL hash
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
function checkHash(backButton) { | |
if(window.location.hash) { | |
backButton = true; | |
} else { | |
backButton = false; | |
} | |
return backButton; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isn't this way easier?
return (window.location.hash)