HTMLAnchorElement
Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
charset: string;
coords: string;
download: string;
hreflang: string;
name: string;
ping: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
rev: string;
shape: string;
target: string;
text: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLAnchorElement, 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: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new (): HTMLAnchorElement;
};§Properties
§
rel: string
[src]Sets or retrieves the relationship between the object and the destination of the link.
§
readonly relList: DOMTokenList
[src]§Methods
§
addEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLAnchorElement, 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: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void