Easy Tutorial
❮ Prop Style Fontsize Prop Style Flexdirection ❯

reload() Method of the Location Object

Location Object

Example

Reload the current document:

Definition and Usage

The reload() method is used to refresh the current document.

The reload() method is similar to the refresh page button in your browser.

If the parameter of this method is set to true, it will bypass the cache and reload the document from the server, regardless of its last modification date. This is exactly the same as when a user presses the Shift key while clicking the browser's refresh button.


Browser Support

All major browsers support the reload() method.


Syntax

Parameters

Parameter Type Description
forceGet Boolean Optional. If set to true, the method will bypass the cache and reload the document from the server, regardless of its last modification date.

Return Value

This method does not return any value.


Location Object

❮ Prop Style Fontsize Prop Style Flexdirection ❯