diff options
author | MDN <actions@users.noreply.github.com> | 2022-02-22 00:12:14 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2022-02-22 00:12:14 +0000 |
commit | 6acf87987baea4675dbd1d5586663959e742cc03 (patch) | |
tree | 83b489d9467dc18464207bbec4a8e5eaf9c804cd /files/ja/web/api/document/afterscriptexecute_event/index.html | |
parent | 92e543f7c53602f7b0ed8ba0788995632adf9601 (diff) | |
download | translated-content-6acf87987baea4675dbd1d5586663959e742cc03.tar.gz translated-content-6acf87987baea4675dbd1d5586663959e742cc03.tar.bz2 translated-content-6acf87987baea4675dbd1d5586663959e742cc03.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/document/afterscriptexecute_event/index.html')
-rw-r--r-- | files/ja/web/api/document/afterscriptexecute_event/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/ja/web/api/document/afterscriptexecute_event/index.html b/files/ja/web/api/document/afterscriptexecute_event/index.html new file mode 100644 index 0000000000..f8b961ca92 --- /dev/null +++ b/files/ja/web/api/document/afterscriptexecute_event/index.html @@ -0,0 +1,51 @@ +--- +title: Document.onafterscriptexecute +slug: Web/API/Document/afterscriptexecute_event +tags: + - API + - DOM + - Non-standard + - Reference + - プロパティ + - 標準外 +translation_of: Web/API/Document/onafterscriptexecute +original_slug: Web/API/Document/onafterscriptexecute +--- +<div>{{ApiRef("DOM")}}{{non-standard_header}}</div> + +<p><strong><code>Document.onafterscriptexecute</code></strong> プロパティは、静的な {{HTMLElement("script")}} 要素のスクリプトの実行が終了したときに呼び出される関数を参照します。要素が {{domxref("Node.appendChild()", "appendChild()")}} などで動的に追加された場合には呼び出されません。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><var>document</var>.onafterscriptexecute = <var>funcRef</var>; +</pre> + +<p><var>funcRef</var> は関数の参照で、イベントが発行されると呼び出されます。イベントの <code>target</code> 属性が、実行が完了した {{HTMLElement("script")}} 要素に設定されます。</p> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js">function finished(e) { + logMessage(`Finished script with ID: ${e.target.id}`); +} + +document.addEventListener('afterscriptexecute', finished, true); +</pre> + +<p><a href="/samples/html/currentScript.html">ライブ例を表示</a></p> + +<h2 id="Specification" name="Specification">仕様書</h2> + +<ul> + <li><a href="http://www.whatwg.org/specs/web-apps/current-work/#the-script-element">HTML5</a></li> +</ul> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> + +<p>{{Compat("api.Document.onafterscriptexecute")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{domxref("Document.onbeforescriptexecute")}}</li> + <li>{{domxref("Document.currentScript")}}</li> +</ul> |