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

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

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

Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating elements.

Properties

deprecated
background: string
deprecated
bgColor: string
deprecated
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null
deprecated
text: string

Methods

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