English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
reload()Method to reload the current resource, like a refresh button.
This method has an optional boolean parameter, which isfalse. If set totrueIf set, the page will always be reloaded from the server, ignoring the browser cache.
location.reload(forcedReload)
location.reload();Test See‹/›
All browsers fully support the reload() method:
Method | |||||
reload() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
forcedReload | (Optional) Specify the type of reload to be performed:
|
Return Value: | None |
---|
Position Reference:location.assign() method
Position Reference:location.replace() method