I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in English (US).
The onrejectionhandled
property of the WindowEventHandlers
mixin is the EventHandler
for processing rejectionhandled
events. These events are raised when Promise
s are rejected.
Syntax
window.addEventListener("rejectionhandled", function(event) { ... }); window.onrejectionhandled = function(event) { ...};
Example
window.onrejectionhandled = function(e) { console.log(e.reason); }
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'onrejectionhandled' in that specification. |
Living Standard | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support 49 | Edge ? | Firefox
No support
No
| IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Edge Mobile ? | Firefox Android
No support
No
| Opera Android No support No | Safari iOS No support No | Samsung Internet Android ? |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- See implementation notes.
- See implementation notes.