Sets or gets the URL for the current document.
Property of dom/Windowdom/Window
Syntaxvar string = document.URL;
document.URL = value;
Return Value
Returns an object of type StringString
the URL of the current web document.
ExamplesThis example function returns the URL property of the current document.
function getURL()
{
return document.URL;
}
Notes Remarks
The URL property is case-sensitive. This property is an alias for the location.href property on the window.
Syntax Standards informationMozilla Developer Network : [document.URL Article]
Microsoft Developer Network: [URL Property Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4