Changes

Jump to: navigation, search

JavaScript Location Object

38 bytes added, 17:07, 18 May 2007
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 recorded to the browser's history(see [[JavaScript History Object]]).

Navigation menu