0 points

js-currentUrl


dashboard

Sun Oct 18 2020 17:01:37 GMT+0000 (UTC)

Posted by @aymanelya

const currentURL = () => window.location.href;

// Example
currentURL(); // 'https://google.com'
content_copy Copy

https://blog.madza.dev/24-modern-es6-code-snippets-to-solve-practical-js-problems?guid