The reload() method of the Location interface reloads the current URL, like the Refresh button.
reload()forceGet Pass true to force a reload bypassing the cache. Defaults to false. Only supported in Firefox.
None (undefined).
SecurityError DOMExceptionThrown if the origin of the script calling the method is not the same origin of the page originally described by the Location object, mostly when the script is hosted on a different domain.
// reload the current page
window.location.reload();Location interface it belongs to.Location.assign() and Location.replace().