Skip to main content
Module

x/evt/mod.ts>dom.HTMLBaseElement

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

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