window.location.reload
Summary
Refresh/reload the current page, optionally forcing a re-download of the content.
Method of apis/locationapis/location
Syntax
var = window.location.reload(forceget);
Parameters
forceget
- Data-type
- String
Boolean, true forces a download the page contents again.
Return Value
Returns an object of type
Examples
//force the page to reload/refresh
window.location.reload();
Related specifications
- Window Object 1.0
- W3C Working Draft