javascript document URL
| URL | NN 3 IE 4 DOM 1 |
|
|
Read/Write |
|
Provides the URL of the current document. The value is the same as location.href. The document.URL property evolved as a replacement for document.location to avoid potential confusion (by scripters and JavaScript interpreter engines) between the location object and document.location property. To navigate to another page, it is safest (for cross-browser and backward compatibility) to assign a URL string value to the location.href property, rather than this document-centered property. |
|
| Example | |
document.URL = "http://www.royh.cn"; |
|
| Value | |
|
Complete or relative URL as a string. |
|
| Default | |
|
The current document's URL. |
|
Previous: javascript document URLUnencoded

That is not true! It works on Firefox 2 and 3.
Please use location.href='address' to change the URL.