JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

URL.hostname Property

Name

URL.hostname Property---the hostname portion of a URL

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

URL.hostname

Description

hostname is a read/write string property of the URL object. It specifies the hostname portion of a URL. For example, the hostname of the following (fictitious) location is "www.ora.com".

http://www.ora.com:1234/catalog/search.html?JavaScript#result

See Also

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


Previous Home Next
URL.host Book Index URL.href

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