Skip to main content
Version: 3.13.0

URL.host

The host property of the URL interface is a string containing the host, that is the URL.hostname, and then, if the port of the URL is nonempty, a ':', followed by the port of the URL.

Value

A string.