Created
June 13, 2013 16:17
-
-
Save Plou/5775060 to your computer and use it in GitHub Desktop.
Javacript code to get the hash from an url (given or current)
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
$.getHash = function(url){ | |
return url ? url.substring(url.indexOf('#')+1) : window.location.hash; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment