Click to return to the DHTML, HTML     
host Property     hover Pseudo-class     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

hostname Property


Sets or retrieves the host name part of the location or URL.

Syntax

HTMLN/A
Scriptingobject.hostname [ = sHostname ]

Possible Values

sHostnameString that specifies the host and domain name, or the numerical IP address.

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

If no host name is available, this property returns an empty string.

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.