Skip to main content
Module

x/evt/lib/types/index.ts>dom.HTMLAnchorElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLAnchorElement
import { type dom } from "https://deno.land/x/evt@v2.4.3/lib/types/index.ts";
const { HTMLAnchorElement } = dom;

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.

Properties

deprecated
charset: string
deprecated
coords: string
download: string
hreflang: string

Sets or retrieves the language code of the object.

deprecated
name: string
ping: string
referrerPolicy: string
rel: string

Sets or retrieves the relationship between the object and the destination of the link.

readonly
relList: DOMTokenList
deprecated
rev: string
deprecated
shape: string
target: string

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

text: string

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

type: string

Methods

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