L'événement error (erreur) est déclenché lorsqu'une ressource n'a pas pu être chargée ; les circonstances exactes varient, ce nom étant utilisé par une grande variété d'API.
Informations générales
- Spécification
- DOM L3
- Interface
UIEvent
si généré depuis l'interface utilisateur,
MediaRecorderErrorEvent
si généré par MediaStream Recording API et
sinonEvent
.- Propagation
- Non
- Annulable
- Non
- Cible
Element
- Action par défaut
- Aucune
Propriétés
Property | Type | Description |
---|---|---|
target Lecture seule |
EventTarget |
The event target (the topmost target in the DOM tree). |
type Lecture seule |
DOMString |
The type of event. |
bubbles Lecture seule |
Boolean |
Whether the event normally bubbles or not. |
cancelable Lecture seule |
Boolean |
Whether the event is cancellable or not. |
view Lecture seule |
WindowProxy |
document.defaultView (window of the document) |
detail Lecture seule |
long (float ) |
0. |
Pour des évènements MediaStream Recording
Ces évènements sont d'un type MediaRecorderErrorEvent
.
Inherits properties from its parent interface, Event
.
error
Read only- A
DOMException
containing information about the error that occurred. Read only.
Voir aussi
GlobalEventHandlers.onerror
- Évènements envoyés à
Window.onerror
et àElement.onerror
HTMLMediaElement.onerror
- Évènements envoyés à
HTMLMediaElement
incluant<audio>
et<video>
. MediaRecorder.onerror
- Évènements envoyés à
MediaRecorder.onerror
, d'un typeMediaRecorderErrorEvent