Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 161 Bytes

current-URL.md

File metadata and controls

8 lines (6 loc) · 161 Bytes

Current URL

Use window.location.href to get current URL.

const currentUrl = _ => window.location.href;
// currentUrl() -> 'https://google.com'