Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLScriptElement

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).

interface HTMLScriptElement extends HTMLElement {
async: boolean;
charset: string;
crossOrigin: string | null;
defer: boolean;
event: string;
htmlFor: string;
integrity: string;
noModule: boolean;
referrerPolicy: string;
src: string;
text: string;
type: string;
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;
}
var HTMLScriptElement: {
prototype: HTMLScriptElement;
supports(type: string): boolean;
}
;

§Extends

§Properties

§
async: boolean
[src]
§
charset: string
[src]

Sets or retrieves the character set used to encode the object.

§
crossOrigin: string | null
[src]
§
defer: boolean
[src]

Sets or retrieves the status of the script.

§
event: string
[src]

Sets or retrieves the event for which the script is written.

§
htmlFor: string
[src]

Sets or retrieves the object that is bound to the event script.

§
integrity: string
[src]
§
noModule: boolean
[src]
§
referrerPolicy: string
[src]
§
src: string
[src]

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

§
text: string
[src]

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

§
type: string
[src]

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