Changes

Jump to: navigation, search

JavaScript Location Object

2 bytes removed, 17:05, 18 May 2007
JavaScript Location Object Methods
== JavaScript Location Object Methods ==
These The JavaScript Location Object contains two methods that may be invoked from JavaScript. These are:
* '''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("http://www.techotopia.com")''. Change does not get recording the browser's history.

Navigation menu