SyntaxFix
Write A Post
Hire A Developer
Questions
You can set the value of document.location.href for this purpose. It points to the current URL. jQuery is not required to do this.
document.location.href