HTML DOM Document domain
HTML DOM Document domain Property
The domain property is used to return the name of the domain of the server from where the document is loaded. If the document is created in memory then it will return null.
Syntax:-
Its syntax is:- document.domain
Further Explanation:-
Type | Description |
String | The domain name of the server. |