Sets or retrieves the host name part of the location or URL.
Syntax
HTML N/A Scripting object.hostname [ = sHostname ]
Possible Values
sHostname String 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
HTML N/A Scripting A, AREA, location