# How to reload the current page with JavaScript

By Atta Ur Rehman Shah (https://attacomsian.com/about). Published Sep 18, 2021. Topics: JavaScript.
Canonical URL: https://attacomsian.com/blog/javascript-reload-page

> A quick guide to learn how to reload the current web page with JavaScript.

In JavaScript, the `reload()` method of the `Location` object is used to reload the current web page.

Here is an example:

```javascript
location.reload();
```

You can also pass an optional boolean parameter to `reload()` to force the browser to reload the page from the server:

```javascript
location.reload(true);
```

If you pass the `false` value or skip it entirely, the browser may reload the page from its cache.

Take a look at [JavaScript location object](https://attacomsian.com/blog/javascript-location-object) tutorial to learn more about the `Location` object properties and methods.
