MDN self-hosted library · e01.org

Element: beforescriptexecute event

DOM

no runnable cells web-api-event upstream source

DOM

[!WARNING] This event was a proposal in an early version of the specification. Do not rely on it.

The beforescriptexecute event is fired when a script is about to be executed. Canceling the event prevents the script from executing.

It is a proprietary event specific to Gecko (Firefox).

Syntax

Use the event name in addEventListener():

addEventListener("beforescriptexecute", (event) => { })

Alternatively, assign to the event handler property of the interface:

onbeforescriptexecute = (event) => { }

Event type

A generic Event.

Specifications

Not part of any specification.

Browser compatibility

See also