Skip to content

Instantly share code, notes, and snippets.

@schmidtsonian
Created July 21, 2013 18:45
Show Gist options
  • Save schmidtsonian/6049509 to your computer and use it in GitHub Desktop.
Save schmidtsonian/6049509 to your computer and use it in GitHub Desktop.
Get hash url
function getHash(){
var hash = decodeURIComponent(window.location.hash);
var url = hash.split("/");
// alert(url)
return url[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment