Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>HTMLBaseElement

Deno Standard Extensions
Go to Latest
interface HTMLBaseElement
implements HTMLElement
import { type HTMLBaseElement } from "https://deno.land/x/yxz@0.17.0/typing/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