Interface HTMLHyperlinkElementUtils
interface HTMLHyperlinkElementUtils {
hash: string;
host: string;
hostname: string;
href: string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
username: string;
toString(): string;
}
hash: string;
host: string;
hostname: string;
href: string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
username: string;
toString(): string;
}
Hierarchy
- HTMLHyperlinkElementUtils (view full)
Properties
hash
hash: string
host
host: string
Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
Can be set, to change the URL's host and port.
hostname
hostname: string
href
href: string
Readonly
origin
origin: string
Returns the hyperlink's URL's origin.
password
password: string
pathname
pathname: string
port
port: string
protocol
protocol: string
search
search: string
Returns the hyperlink's URL's query (includes leading "?" if non-empty).
Can be set, to change the URL's query (ignores leading "?").
username
username: string
Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
Can be set, to change the URL's fragment (ignores leading "#").
MDN Reference