August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.domain
The domain property initially contains the hostname of the server from which the document was loaded. The document is allowed to change the value to the domain minus the prefix. For example, if a Web page originated from www.example.com, the document could change this to example.com. The reason this is allowed is so different pages that come from different servers within the same Web site can share properties. The restrictive quality of this property keeps unrelated documents from wrongfully seeing the data each document might have collected.
No example is provided, because the document would have to originate from a server ...
Read now
Unlock full access