Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
}
;

§Extends

§Properties

§
charset: string
[src]

Sets or retrieves the character set used to encode the object.

§
coords: string
[src]

Sets or retrieves the coordinates of the object.

§
download: string
[src]
§
hreflang: string
[src]

Sets or retrieves the language code of the object.

§
name: string
[src]

Sets or retrieves the shape of the object.

§
ping: string
[src]
§
referrerPolicy: string
[src]
§
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.

§
shape: string
[src]

Sets or retrieves the shape of the object.

§
target: string
[src]

Sets or retrieves the window or frame at which to target content.

§
text: string
[src]

Retrieves or sets the text of the object as a string.

§
type: string
[src]

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]