X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML domain Property

Document Object Reference Document Object

Example

Return the domain name of the server that loaded the document:

document.domain;

Try it yourself »


Definition and Usage

The domain property returns the domain name of the server that loaded the current document.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The domain property is supported in all major browsers.


Syntax

document.domain

Technical Details

Return Value: A string that specifies 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


Document Object Reference Document Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook