July 1998
Intermediate to advanced
1456 pages
65h 5m
English
domain — NN 3 IE 4 DOM n/a
Read/Write
The hostname of the server that served up the document. If documents
from different servers on the same domain must exchange content with
each other, the domain properties of both
documents must be set to the same domain to avoid security
restrictions. Normally, if the hosts don’t match, JavaScript
disallows access to the other document’s form data. This
property allows, for example, a page from the
www server to communicate with a page served up
by a secure server.
document.domain = "megaCorp.com"
String of the domain name that two documents have in common (exclusive of the server name).
None.
Read now
Unlock full access