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

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

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

Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.

Properties

href: string

Gets or sets the baseline URL on which relative links are based.

target: string

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

Methods

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