hosthost*
*Contents  *Index  *Topic Contents
*Previous Topic: Hidden
*Next Topic: hostname

host

Description

Sets or retrieves the hostname:port part of the location or URL.

Syntax

object.host[ = host]

Settings

This read-write property is the concatenation of the hostname and port properties, separated by a colon. When the port property is null, the host property is the same as the hostname property.

You can set the host property at any time, although it is safer to set the href property to change a location. If the host that you specify cannot be found, you will get an error.

Applies To

A, AREA, location


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.