Is a DOMString containing a '#' followed by the fragment identifier of the URL.
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
MDN
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
MDN
Is a DOMString containing the domain of the URL.
Is a DOMString containing the domain of the URL.
MDN
Is a DOMString containing the whole URL.
Is a DOMString containing the whole URL.
MDN
The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified).
The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the value is browser dependant.
MDN
Is a DOMString containing an initial '/' followed by the path of the URL.
Is a DOMString containing an initial '/' followed by the path of the URL.
MDN
Is a DOMString containing the port number of the URL.
Is a DOMString containing the port number of the URL.
MDN
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
MDN
Is a DOMString containing a '?' followed by the parameters of the URL.
Is a DOMString containing a '?' followed by the parameters of the URL.
MDN
The WorkerLocation interface defines the absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling window.self.location.
MDN