Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

hostname property

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

Syntax

JavaScript

p = object.hostname

 

Property values

Type: String

the host and domain name, or the numerical IP address.

Remarks

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

See also

a
area
location

 

 

Show:
© 2015 Microsoft