TOC PREV NEXT INDEX

Put your logo here!


URL


Returns the URL of the current document.

Syntax

url = document.URL 

Parameters

url is a string representing the URL of the current document.

Example

None. 

Notes

URL is a somewhat more appropriately named replacement for the DOM Level 0 document.location property also described here. Like document.location, document.URL is not settable because a document can have only one URL.

Specification

html


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX