Created
May 30, 2012 22:24
-
-
Save b3457m0d3/2839315 to your computer and use it in GitHub Desktop.
get hash from url, without #
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(window.location.hash) { | |
var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment