SyntaxFix
Write A Post
Hire A Developer
Questions
You can log window.location and see all the options, for just the URL use:
window.location.origin
for the whole path use:
window.location.href
there's also location.__
.host .hostname .protocol .pathname