hostname property

Contains the hostname of a URL.

This property is read-only.

Syntax

JavaScript
ptr = object.hostname

 

Property values

Type: DOMString

String containing the hostname of a URL.

See also

WorkerLocation

 

 

Show: