Get the current URL with JavaScript?
Asked 07 September, 2021
Viewed 1.6K times
  • 54
Votes

All I want is to get the website URL. Not the URL as taken from a link. On the page loading I need to be able to grab the full, current URL of the website and set it as a variable to do with as I please.

25 Answer