Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM URL property

HTML DOM URL property

Document Object Reference Document Object


Definition and Usage

The URL property returns the URL of the current document.

Syntax

document.URL


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the URL property


Example

Example

Return the full URL of the current document:

The full URL of the document:

Try it »


Document Object Reference Document Object