diff options
Diffstat (limited to 'files/ja/web/api/xmlhttprequesteventtarget/onabort/index.html')
-rw-r--r-- | files/ja/web/api/xmlhttprequesteventtarget/onabort/index.html | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/files/ja/web/api/xmlhttprequesteventtarget/onabort/index.html b/files/ja/web/api/xmlhttprequesteventtarget/onabort/index.html deleted file mode 100644 index c6a48aa880..0000000000 --- a/files/ja/web/api/xmlhttprequesteventtarget/onabort/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: XMLHttpRequestEventTarget.onabort -slug: Web/API/XMLHttpRequestEventTarget/onabort -tags: - - API - - Property - - Reference - - Web - - XHMLHttpRequestEventTarget - - イベントハンドラ -translation_of: Web/API/XMLHttpRequestEventTarget/onabort ---- -<div>{{APIRef("XMLHttpRequest")}}</div> - -<p><strong><code>XMLHttpRequestEventTarget.onabort</code></strong> は、 {{domxref("XMLHttpRequest.abort()")}} 関数が呼ばれたときなどの {{domxref("XMLHttpRequest")}} トランザクションが中止されたときに呼び出される関数です。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onabort = <em>callback</em>;</pre> - -<h3 id="値">値</h3> - -<ul> - <li><code><em>callback</em></code> は、トランザクションが中止されたときに実行される関数です。</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.onabort = function () { - console.log('** The request was aborted'); -}; -xmlhttp.send(); -//.. -xmlhttp.abort(); // This will invoke our onabort handler above -</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-onabort')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> - - - -<p>{{Compat("api.XMLHttpRequestEventTarget.onabort")}}</p> |