JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next Property

Name Property---the hostname and port portions of a URL


Navigator 2.0, Internet Explorer 3.0



host is a read/write string property of the URL object. It specifies the hostname and port portions of a URL. For example, the host of the following (fictitious) location is "".

See Also

"Area", "Document.links[]", "Link", "URL", "Window.location"

Previous Home Next
URL.hash Book Index URL.hostname

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz