[Chapter 21] Reference: URL.host
Author: David Flanagan
Date: Fri Aug 29 11:20:50 1997

#

| Chapter 21 JavaScript Reference |

# URL.host Property

## Name

URL.host Property---the hostname and port portions of a URL

## Availability

Navigator 2.0, Internet Explorer 3.0

## Synopsis

    URL.host

## Description

`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 "www.ora.com:1234".

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

## See Also

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

URL.hash |  | URL.hostname