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
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
MDN
Is a DOMString containing the password specified before the domain name.
Is a DOMString containing the password specified before the domain name.
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
Is a DOMString containing the username specified before the domain name.
Is a DOMString containing the username specified before the domain name.
MDN
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
MDN