Element.onafterscriptexecute

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

Revision Content

{{ DomRef() }}

{{ gecko_minversion_header("2") }}

Fired when a {{ HTMLElement("script") }} element finishes executing its script.

Syntax

document.onafterscriptexecute = 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 just finished executing.

Example


See Also

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

Specification

Revision Source

<p>{{ DomRef() }}</p>
<p>{{ gecko_minversion_header("2") }}</p>
<p>Fired when a {{ HTMLElement("script") }} element finishes executing its script.</p>
<h3 class="editable"><span>Syntax </span></h3>
<pre class="eval"><em>document.onafterscriptexecute = 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 just finished executing.</p>
<h3 class="editable"><span>Example</span></h3>
<br>
<h3 class="editable">See Also</h3>
<ul> <li>{{ domxref("document.currentScript") }}</li>
</ul>
<h3 class="editable"><span>Specification </span></h3>
Revert to this revision