aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xmlhttprequest/abort_event/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/xmlhttprequest/abort_event/index.html')
-rw-r--r--files/ja/web/api/xmlhttprequest/abort_event/index.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/files/ja/web/api/xmlhttprequest/abort_event/index.html b/files/ja/web/api/xmlhttprequest/abort_event/index.html
new file mode 100644
index 0000000000..a8a128756c
--- /dev/null
+++ b/files/ja/web/api/xmlhttprequest/abort_event/index.html
@@ -0,0 +1,64 @@
+---
+title: XMLHttpRequestEventTarget.onabort
+slug: Web/API/XMLHttpRequest/abort_event
+tags:
+ - API
+ - Property
+ - Reference
+ - Web
+ - XHMLHttpRequestEventTarget
+ - イベントハンドラ
+translation_of: Web/API/XMLHttpRequestEventTarget/onabort
+original_slug: 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>