Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements.

Properties

alt: string

Sets or retrieves a text alternative to the graphic.

coords: string

Sets or retrieves the coordinates of the object.

download: string
deprecated
noHref: boolean
ping: string
referrerPolicy: string
rel: string
readonly
relList: DOMTokenList
shape: string

Sets or retrieves the shape of the object.

target: string

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

Methods

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