SyntaxFix
Write A Post
Hire A Developer
Questions
Use this:
var url = window.location.href; console.log(url);