2.3.2.12 host

host of type DOMString

Sets or retrieves the hostname and port number of the location or URL.

The host property is the concatenation of the hostname and port properties, separated by a colon (hostname:port). When the port property is null, the host property is the same as the hostname property.

The host property may be set at any time, although it is safer to set the href property to change a location. If the specified host cannot be found, an error is returned.

This DOM attribute is read-only.

This attribute extends the following interfaces: