Interface URL
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
searchParams: URLSearchParams;
username: string;
toJSON(): string;
toString(): string;
}
hash: string;
host: string;
hostname: string;
href: string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
searchParams: URLSearchParams;
username: string;
toJSON(): string;
toString(): string;
}
Properties
hash
hash: string
host
host: string
hostname
hostname: string
href
href: string
Readonly
origin
origin: string
password
password: string
pathname
pathname: string
port
port: string
protocol
protocol: string
search
search: string
Readonly
searchParams
username
username: string
The URL interface represents an object providing static methods used for creating object URLs.
MDN Reference