Element.onbeforescriptexecute

  • Revision slug: DOM/element.onbeforescriptexecute
  • Revision title: element.onbeforescriptexecute
  • Revision id: 44147
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment page created, 58 words added

Revision Content

{{ DomRef() }}

{{ gecko_minversion_header("2") }}

Fired when the code in a {{ HTMLElement("script") }} element is about to start executing executing.

Syntax

document.onbeforescriptexecute = funcRef;

funcRef is a function reference, called when the event is fired. The event's target attribute is set to the script {{ domxref("Element") }} that is about to be executed.

Example

 

See Also

  • {{ domxref("document.currentScript") }}

Specification


Revision Source

<p>{{ DomRef() }}</p>
<p>{{ gecko_minversion_header("2") }}</p>
<p>Fired when the code in a {{ HTMLElement("script") }} element is about to start executing executing.</p>
<h3 class="editable"><span>Syntax </span></h3>
<pre class="eval"><em>document.onbeforescriptexecute = funcRef;</em>
</pre>
<p><em>funcRef</em> is a function reference, called when the event is fired. The event's <code>target</code> attribute is set to the script {{ domxref("Element") }} that is about to be executed.</p>
<h3 class="editable"><span>Example</span></h3>
<pre class="eval deki-transform"> </pre>
<h3 class="editable">See Also</h3>
<ul> <li>{{ domxref("document.currentScript") }}</li>
</ul>
<h3 class="editable"><span>Specification </span></h3>
<br>
Revert to this revision