Created
July 8, 2013 19:09
-
-
Save jswhisperer/5951576 to your computer and use it in GitHub Desktop.
the current url
This file contains hidden or 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
| // Retrieve current URL | |
| var url = document.URL; | |
| // Retrieve current root URL | |
| var root = location.protocol + '//' + location.host; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment