Created
February 23, 2012 04:44
-
-
Save kagemusha/1890279 to your computer and use it in GitHub Desktop.
Javascript: Get page url
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
url = location.href | |
e.g. to get anchor | |
anchor = location.href.split('#')[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment