Skip to content

Instantly share code, notes, and snippets.

@michalzubkowicz
Created June 20, 2013 13:53
Show Gist options
  • Save michalzubkowicz/5822890 to your computer and use it in GitHub Desktop.
Save michalzubkowicz/5822890 to your computer and use it in GitHub Desktop.
Javascript location
Whole url:
window.location.href
Path:
window.location.pathname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment