Javascript Reference
Categories: window

javascript window location

@March 15, 2008, 1:22 a.m.
locationFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  

Read/Write  

Returns a location object containing URL details of the document currently loaded in the window or frame. To navigate to another page, you assign a URL to the location.href property (or see the navigate( ) method for an IE-only alternative). See the location object.

 
Example
 
top.location.href = "index.html";
 
Value

A full or relative URL as a string.

 
Default

Current location object.


Powered by Linode.