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

Reloads the current page.

Syntax

location.reload( [bReloadSource])

Parameters

bReloadSource Optional. Boolean that specifies one of the following possible values:
falseDefault. Reloads the page from the browser cache.
trueReloads 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
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   |  
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   |  
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
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker