Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 20:40:47 +02:00
parent 703e2e2e9d
commit 0bc2ef70ce
6 changed files with 12 additions and 12 deletions

View File

@ -30,7 +30,7 @@ The arguments for both methods are the same, allowing you to pass a customized s
### Using the Location API
The older [Location API](https://developer.mozilla.org/en-US/docs/Web/API/Location) is not the best tool for the job. It reloads the page, but still allows you to modify the current URL and might be useful when working with legacy browsers. You can modify the URL, using either `window.location.href`, `location.assign()` or `location.replace()`:
The older [Location API](https://developer.mozilla.org/en-US/docs/Web/API/Location) is not the best tool for the job. It reloads the page, but still allows you to modify the current URL and might be useful when working with legacy browsers. You can modify the URL, using either `Window.location.href`, `location.assign()` or `location.replace()`:
```js
// Current URL: https://my-website.com/page_a