Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLScriptElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { HTMLScriptElement } = dom;

HTML elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of elements (beyond the inherited HTMLElement interface).

Properties

async: boolean
deprecated
charset: string
crossOrigin: string | null
defer: boolean

Sets or retrieves the status of the script.

deprecated
event: string
deprecated
htmlFor: string
integrity: string
noModule: boolean
referrerPolicy: string
src: string

Retrieves the URL to an external file that contains the source code or data.

text: string

Retrieves or sets the text of the object as a string.

type: string

Sets or retrieves the MIME type for the associated scripting engine.

Methods

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