HTML domain property
Document Object
Definition and Usage
The domain property returns the server domain from which the current document was downloaded:
Syntax
document.domain
Browser support





All major browsers support the domain property
Example
Example
Return the server domain name from which the current document was downloaded:
The domain name that loaded this file:
Try it »
Document Object