The URL interface represent an object providing static methods used for creating object URLs.
The URL interface represent an object providing static methods used for creating object URLs.
When using a user agent where no constructor has been implemented yet, it is possible to access such an object using the Window.URL properties (prefixed with Webkit-based browser as Window.webkitURL).
Is a DOMString representing an absolute or relative URL. If urlString is a relative URL, baseURLString or baseURLObject, whichever is present, will be used as the base URL. If urlString is an absolute URL, baseURLstring and baseURLobject are ignored.
Is a URL object representing the base URL to use in case urlString is a relative URL.
The URL interface represent an object providing static methods used for creating object URLs.
The URL interface represent an object providing static methods used for creating object URLs.
When using a user agent where no constructor has been implemented yet, it is possible to access such an object using the Window.URL properties (prefixed with Webkit-based browser as Window.webkitURL).
Is a DOMString representing an absolute or relative URL. If urlString is a relative URL, baseURLString or baseURLObject, whichever is present, will be used as the base URL. If urlString is an absolute URL, baseURLstring and baseURLobject are ignored.
Is a DOMString representing an absolute or relative URL. If urlString is a relative URL, baseURLstring or baseURLobject, whichever is present, will be used as the base URL. If urlString is an absolute URL, baseURLstring and baseURLobject are ignored.
Is a DOMString representing the base URL to use in case urlString is a relative URL. If not specified, and no baseURLobject is passed in parameters, it default to 'about:blank'. If it is an invalid absolute URL, the constructor will raise a DOMException of type SYNTAX_ERROR
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
Is a DOMString containing the whole URL.
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
Is a DOMString containing the password specified before the domain name.
Is a DOMString containing an initial '/' followed by the path of the URL.
Is a DOMString containing the port number of the URL.
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
Is a DOMString containing a '?' followed by the parameters of the URL.
Returns a URLSearchParams object allowing to access the GET query arguments contained in the URL.
Returns a URLSearchParams object allowing to access the GET query arguments contained in the URL.
a URLSearchParams object
Is a DOMString containing the username specified before the domain name.
The URL interface represent an object providing static methods used for creating object URLs.
When using a user agent where no constructor has been implemented yet, it is possible to access such an object using the Window.URL properties (prefixed with Webkit-based browser as Window.webkitURL).
https://developer.mozilla.org/en-US/docs/Web/API/URL