|
LocationHostProperty
The location.host property is the concatenation of the hostname and port properties.
Valueslocation.host is hostname + port number, separated by a colon (i.e. hostname:port). When the port property is null, the host property is the same as the hostname property. If the location comes from an frame, reading this variable may throw an exception if the domains are different. The location.host property returns a string. This property is read/write. UsageBrowser compatibility
Further reading |
Sign in to add a comment
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.
If the location comes from an frame reading this variable may throw an exception if the domains are different.