diff options
Diffstat (limited to 'files/ja/web/api/windoweventhandlers/onrejectionhandled/index.html')
| -rw-r--r-- | files/ja/web/api/windoweventhandlers/onrejectionhandled/index.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/files/ja/web/api/windoweventhandlers/onrejectionhandled/index.html b/files/ja/web/api/windoweventhandlers/onrejectionhandled/index.html new file mode 100644 index 0000000000..c2bdf26513 --- /dev/null +++ b/files/ja/web/api/windoweventhandlers/onrejectionhandled/index.html @@ -0,0 +1,53 @@ +--- +title: WindowEventHandlers.onrejectionhandled +slug: Web/API/WindowEventHandlers/onrejectionhandled +tags: + - API + - Event Handler + - HTML DOM + - JavaScript + - Promises + - Property + - Reference + - WindowEventHandlers + - events + - onrejectionhandled +translation_of: Web/API/WindowEventHandlers/onrejectionhandled +--- +<div>{{APIRef}}</div> + +<p><span class="seoSummary">{{domxref("WindowEventHandlers")}} ミックスインの <strong><code>onrejectionhandled</code></strong> プロパティは、{{event("rejectionhandled")}} イベントを処理するための {{domxref("EventHandler")}} です。 このイベントは、{{jsxref("Promise")}} が拒否されたときに発生します。</span></p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox">window.addEventListener("rejectionhandled", function(event) { ... }); +window.onrejectionhandled = function(event) { ...};</pre> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js">window.onrejectionhandled = function(e) { + console.log(e.reason); +}</pre> + +<h2 id="Specifications" name="Specifications">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様</th> + <th scope="col">状態</th> + <th scope="col">コメント</th> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG', 'webappapis.html#handler-window-onrejectionhandled', 'onrejectionhandled')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>初期定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.WindowEventHandlers.onrejectionhandled")}}</p> |
