Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Methods
 reload Method

  Switch on low bandwidth view
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Effect of bReloadSource on included images or Javascript      ZumaDude   |   Edit   |   Show History
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?
Alternative to 'true' and 'false' bReloadSource      pfshepherd   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker