34,333
edits
Changes
→JavaScript Location Object Methods
* '''location.reload()''' - reloads the current document. The same as pressing the ''Reload'' button in the browser window. If ''true'' is passed through as an argument (i.e ''location.reload(true)'') it forces a reload without using the browser cache (similar to shift clicking on the browser ''Reload'' button.
* '''location.replace()''' - replaces the current URL with the new URL specified as an argument (i.e ''location.replace(<nowiki>"http://www.techotopia.com"</nowiki>)''. Change does not get recording the browser's history.