HTMLLinkElement
Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.
interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
charset: string;
crossOrigin: string | null;
disabled: boolean;
href: string;
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
media: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
rev: string;
readonly sizes: DOMTokenList;
target: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var HTMLLinkElement: {
prototype: HTMLLinkElement;
new (): HTMLLinkElement;
};§Properties
§
rel: string
[src]Sets or retrieves the relationship between the object and the destination of the link.
§
readonly relList: DOMTokenList
[src]§
rev: string
[src]Sets or retrieves the relationship between the object and the destination of the link.
§
readonly sizes: DOMTokenList
[src]§Methods
§
addEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void