Name
location — NN 2 IE 3 DOM n/a
Synopsis
Read/Write
The URL 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).
Example
top.location = "index.html"
Value
A full or relative URL as a string.
Default
Document URL.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.