diff options
author | MDN <actions@users.noreply.github.com> | 2022-02-11 00:58:37 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2022-02-11 00:58:37 +0000 |
commit | 4873c5f1122ac800cf3c916a52df07e05ddc9dcf (patch) | |
tree | 0b63e7a2179d77b0b20eac780dba8d8cb35355f4 /files/ja/web/api/xmlhttprequesteventtarget/onload | |
parent | 633d212cfb9c7a5838f350ff88264e460ef0398e (diff) | |
download | translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.gz translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.bz2 translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/xmlhttprequesteventtarget/onload')
-rw-r--r-- | files/ja/web/api/xmlhttprequesteventtarget/onload/index.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/files/ja/web/api/xmlhttprequesteventtarget/onload/index.html b/files/ja/web/api/xmlhttprequesteventtarget/onload/index.html deleted file mode 100644 index f208d27499..0000000000 --- a/files/ja/web/api/xmlhttprequesteventtarget/onload/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: XMLHttpRequestEventTarget.onload -slug: Web/API/XMLHttpRequestEventTarget/onload -tags: - - API - - Property - - Reference - - Web - - XMLHttpRequestEventTarget - - イベントハンドラ -translation_of: Web/API/XMLHttpRequestEventTarget/onload ---- -<div>{{APIRef("XMLHttpRequest")}}</div> - -<p><strong><code>XMLHttpRequestEventTarget.onload</code></strong> は、 {{domxref("XMLHttpRequest")}} トランザクションが正常に完了した場合に呼び出される関数です。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onload = <em>callback</em>;</pre> - -<h3 id="値">値</h3> - -<ul> - <li><code><em>callback</em></code> は、リクエストが正常に実行完了した場合に実行される関数です。最初の引数として {{domxref("ProgressEvent")}} オブジェクトを受け取ります。 <em>this</em> の値 (つまり、このコンテキスト) は、この callback が関連付けられている {{domxref("XMLHttpRequest")}} と同じです。</li> -</ul> - -<h2 id="Example" name="Example">例</h2> - -<pre class="brush: js notranslate">var xmlhttp = new XMLHttpRequest(), - method = 'GET', - url = 'https://developer.mozilla.org/'; - -xmlhttp.open(<em>method</em>, <em>url</em>, true); -xmlhttp.onload = function () { - // Do something with the retrieved data ( found in xmlhttp.response ) -}; -xmlhttp.send(); -</pre> - -<h2 id="仕様">仕様</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">仕様</th> - <th scope="col">ステータス</th> - <th scope="col">備考</th> - </tr> - <tr> - <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> - - - -<p>{{Compat("api.XMLHttpRequestEventTarget.onload")}}</p> |