Update document, window
This commit is contained in:
@ -5,7 +5,7 @@ tags: browser,beginner
|
||||
|
||||
Returns the current URL.
|
||||
|
||||
- Use `window.location.href` to get the current URL.
|
||||
- Use `Window.location.href` to get the current URL.
|
||||
|
||||
```js
|
||||
const currentURL = () => window.location.href;
|
||||
|
||||
Reference in New Issue
Block a user