Location.Hostname

Location.Hostname property

Returns the Location object’s URL’s host. Can be set, to navigate to the same URL with a changed host.

public string Hostname { get; set; }

See Also