HTMLHyperlinkElementUtils
interface HTMLHyperlinkElementUtils {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
username: string;
}
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
username: string;
}
Hierarchy (View Summary)
- HTMLHyperlinkElementUtils
Index
Properties
<internal>.HTMLHyperlinkElementUtils.hash<internal>.HTMLHyperlinkElementUtils.host<internal>.HTMLHyperlinkElementUtils.hostname<internal>.HTMLHyperlinkElementUtils.href<internal>.HTMLHyperlinkElementUtils.origin<internal>.HTMLHyperlinkElementUtils.password<internal>.HTMLHyperlinkElementUtils.pathname<internal>.HTMLHyperlinkElementUtils.port<internal>.HTMLHyperlinkElementUtils.protocol<internal>.HTMLHyperlinkElementUtils.search<internal>.HTMLHyperlinkElementUtils.username
Methods
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