Code to go logo
Created using Figma
Use Cases
Contribute
How to get current page url in JavaScript
URL
By Jad Joubran ·
Last updated Dec 16, 2017
window.location.href;
https://codetogo.io/how-to-get-current-page-url-in-javascript/
Dec 16, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Window.location
on MDN
Learn JavaScript step by step