Skip to content

Instantly share code, notes, and snippets.

@b3457m0d3
Created May 30, 2012 22:24
Show Gist options
  • Save b3457m0d3/2839315 to your computer and use it in GitHub Desktop.
Save b3457m0d3/2839315 to your computer and use it in GitHub Desktop.
get hash from url, without #
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