Click to return to the DHTML, HTML     
hidden Property     hostname Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

host Property


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

Syntax

HTMLN/A
Scriptingobject.host [ = sHost ]

Possible Values

sHostString that specifies the host name and port number.

The property is read/write with no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting A, AREA, location


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.