Get the domain name of the server that loaded the document:
The result of x will be:
The domain property returns the domain name of the server that loaded the current document.
Property | |||||
---|---|---|---|---|---|
domain | Yes | Yes | Yes | Yes | Yes |
Return Value: | A String, representing the domain name of the server that loaded the current document, or null if the domain of the document cannot be identified |
---|---|
DOM Version | Core Level 2 Document Object |