public
Created

Javascript: Get page url

  • Download Gist
gistfile1.txt
1 2 3 4
url = location.href
 
e.g. to get anchor
anchor = location.href.split('#')[1]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.