reload method
[This documentation is preliminary and is subject to change.]
Reloads the current document.
Syntax
object.reload(flag)Standards information
There are no standards that apply here.
Parameters
- flag [in, optional]
-
Type: VARIANT_BOOL
Boolean that specifies one of the following possible values:
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Build date: 2/14/2012
Community Content
EricLaw [MSFT]
Understanding the Refresh behavior
The following post explains the under-the-hood behavior of the bReloadSource flag:
http://blogs.msdn.com/b/ieinternals/archive/2010/07/08/technical-information-about-conditional-http-requests-and-the-refresh-button.aspx
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);
window.location.reload(location.href);
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?