aboutsummaryrefslogtreecommitdiff
path: root/files/uk/web/api/windoweventhandlers/onrejectionhandled
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/uk/web/api/windoweventhandlers/onrejectionhandled
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/uk/web/api/windoweventhandlers/onrejectionhandled')
-rw-r--r--files/uk/web/api/windoweventhandlers/onrejectionhandled/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/files/uk/web/api/windoweventhandlers/onrejectionhandled/index.html b/files/uk/web/api/windoweventhandlers/onrejectionhandled/index.html
new file mode 100644
index 0000000000..81cabc79bd
--- /dev/null
+++ b/files/uk/web/api/windoweventhandlers/onrejectionhandled/index.html
@@ -0,0 +1,52 @@
+---
+title: WindowEventHandlers.onrejectionhandled
+slug: Web/API/WindowEventHandlers/onrejectionhandled
+tags:
+ - API
+ - HTML DOM
+ - JavaScript
+ - Promise
+ - WindowEventHandlers
+ - onrejectionhandled
+ - Обробник подій
+ - Проміс
+ - події
+translation_of: Web/API/WindowEventHandlers/onrejectionhandled
+---
+<div>{{APIRef}}</div>
+
+<p>Властивість <strong><code>onrejectionhandled</code></strong> домішки {{domxref("WindowEventHandlers")}} - це {{domxref("EventHandler")}} для обробки подій <a href="/uk/docs/Web/API/Window/rejectionhandled_event">rejectionhandled</a>. Ці події виникають, коли відхиляються об'єкти {{jsxref("Promise")}}.</p>
+
+<h2 id="Синтаксис">Синтаксис</h2>
+
+<pre class="syntaxbox">window.addEventListener("rejectionhandled", function(event) { ... });
+window.onrejectionhandled = function(event) { ...};</pre>
+
+<h2 id="Приклад">Приклад</h2>
+
+<pre class="brush: js">window.onrejectionhandled = function(e) {
+ console.log(e.reason);
+}</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('HTML WHATWG', 'webappapis.html#handler-window-onrejectionhandled', 'onrejectionhandled')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Початкове визначення.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Сумісність_з_веб-переглядачами">Сумісність з веб-переглядачами</h2>
+
+
+
+<p>{{Compat("api.WindowEventHandlers.onrejectionhandled")}}</p>