|
|
|
|
|
domain
domain returns the domain of the current document.
Syntax
domain_name = document.domainParameters
domain_name is a string referring to the domain of the current document.
Example
bad_domain = "www.love.com"; if ( document.domain == bad_domain ) { window.close(); } // for document www.love.com/good.html, // this script closes the window
Notes
This property returns NULL if the server of the document cannot be identified.
Specification
| mozilla.org | mailto:oeschger | bug 93108 |
|
|
|
|
|