You can find the location object's methods in Table 10.9.
Table 10.9. The Properties and Methods of the location Object
Method
NS2
NS3
NS4
NS6
IE3a
IE3b
IE4
IE5
IE5.5
IE6
assign
x
x
x
x
x
x
x
x
x
x
Returns: Nothing
This method performs the same action as assigning a URL to the href property.
Syntax: assign( URL ) , where URL is the new URL.
reload
x
x
x
x
x
x
x
Reloads the current page.
Syntax: location.reload([ flag ]) , where flag is true if you want the page to be reloaded from the server, or false (the default) if you want the page reloaded from the browser's cache (if it's still there).
replace
x
x
x
x
x
x
x
Replaces the current document by loading another document from the given URL.
Syntax: location.replace( URL ) , where URL is the new URL.