Readonly
originReturns a string containing the full URL. It is a synonym for the href
property.
Returns a string containing the full URL. It is a synonym for the href
property, though it can't be used to modify the value.
Static
canStatic
createStatic
revokeGenerated using TypeDoc
The
URL
interface is used to parse, construct, normalize, and encode URLs. It works by providing properties which allow you to easily read and modify the components of a URL.You normally create a new
URL
object by specifying the URL as a string when calling its constructor, or by providing a relative URL and a base URL. You can then easily read the parsed components of the URL or make changes to the URL.