English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
URLThe read-only property returns the complete URL of the current document as a string.
document.URL
var url = document.URL;Test See‹/›
All browsers fully support the URL property:
Property | |||||
URL | Yes | Yes | Yes | Yes | Yes |
Return Value: | A string representing the complete URL of the document, including the protocol (such as http or https) |
---|---|
DOM Version: | DOM Level1 |