Skip to content

Commit

Permalink
Show a usable example of Location.reload() (#32787)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho authored Mar 21, 2024
1 parent cdffbae commit c7d112a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/en-us/web/api/location/reload/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ None ({{jsxref("undefined")}}).
- `SecurityError` {{domxref("DOMException")}}
- : Thrown if the {{Glossary("origin")}} of the script calling the method is not the {{Glossary("Same-origin policy", "same origin")}} of the page originally described by the {{domxref("Location")}} object, mostly when the script is hosted on a different domain.

## Examples

```js
// reload the current page
window.location.reload();
```

## Specifications

{{Specifications}}
Expand Down

0 comments on commit c7d112a

Please sign in to comment.