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

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

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

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