Methods


reload Method

Reloads the current page.

Syntax

object.reload( [bReloadSource])

Parameters

bReloadSource Optional. Boolean that specifies one of the following possible values:
false
Default. Reloads the page from the browser cache.
true
Reloads the page from the server.

Return Value

No return value.

Standards Information

There is no public standard that applies to this method.

Applies To

location, Location Constructor
Tags :


Community Content

ZumaDude
Effect of bReloadSource on included images or Javascript
When the page being reloaded includes various images or Javascript files (e.g. <script language="JavaScript" type="text/javascript" src="../something.js"></script>) what is the effect of bReloadSource. Specifically, when the content is intended to be dynamic but the images or Javascript don't change does the page adhere to the "<meta name="Pragma" content="no-cache">" hint when bReloadSource == false?

pfshepherd
Alternative to 'true' and 'false' bReloadSource
If you're not getting the behaviour you're expecting, try specifying the page's href to ensure that the page is reloaded from the server:

window.location.reload(location.href);
Tags :

Page view tracker