Results 1 - 13 of 13

Notification.onerror

The onerror property of the Notification interface specifies an event listener to receive error events. These events occur when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)
API DOM Notifications onerror Property Reference Référence

AbstractWorker.onerror

The AbstractWorker.onerror property of the AbstractWorker interface represents an EventHandler, that is a function to be called when the error event occurs and bubbles through the Worker.
AbstractWorker API EventHandler onerror Property Reference Référence Web Workers Workers

IDBDatabase.onerror

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases.
API Database IDBDatabase IndexedDB onerror Property Reference Référence storage Storage

IDBRequest.onerror

The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store. Also included at the bottom is an onerror function that reports what the error was if the request fails. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBRequest IndexedDB onerror Property Reference Storage storage

IDBTransaction.onerror

In the following code snippet, we open a read/write transaction on our database and add some data to an object store. Note also the functions attached to transaction event handlers to report on the outcome of the transaction opening in the event of success or failure. Note the transaction.onerror = function(event) { }; block, making use of transaction.error to help in reporting what went wrong when the transaction was unsuccessful. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBTransaction IndexedDB onerror Property Reference Storage storage

SpeechSynthesisUtterance.onerror

The onerror property of the SpeechSynthesisUtterance interface represents an event handler that will run when an error occurs that prevents the utterance from being succesfully spoken (when the error event fires.)
API Experimental onerror Property Reference speech SpeechSynthesisUtterance synthesis

WorkerGlobalScope.onerror

The onerror property of the WorkerGlobalScope interface represents an EventHandler to be called when the error event occurs and bubbles through the Worker.
API EventHandler onerror Property Reference Référence Web Workers WorkerGlobalScope

MediaRecorder.onerror

The MediaRecorder.onerror event handler (part of the MediaRecorder API) handles the DOMError event, allowing you to run code in response to fatal errors occurring that prevent media capture.
API Audio Media Capture Media Recorder API MediaRecorder onerror Property Reference Video

SpeechRecognition.onerror

The onerror property of the SpeechRecognition interface represents an event handler that will run when a speech recognition error occurs (when the error event fires.)
API Experimental onerror Property recognition Reference speech SpeechRecognition Web Speech API