この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The error event is fired when an error occurred; the exact circumstances vary, events by this name are used from a variety of APIs.

General info

Specification
DOM L3
Interface
UIEvent if generated by a user interface element, MediaRecorderErrorEvent if generated by the MediaStream Recording API, and Event otherwise.
Bubbles
No
Cancelable
No
Target
Element
Default Action
None

Properties

For UI events

These events are of type UIEvent.

This interface also inherits properties of its parent, Event.

UIEvent.cancelBubble  
Is a Boolean indicating whether the bubbling of the event has been canceled or not.
UIEvent.detailRead only
Returns a long with details about the event, depending on the event type.
UIEvent.isChar Read only
Returns a Boolean indicating whether the event produced a key character or not.
UIEvent.layerX Read only
Returns the horizontal coordinate of the event relative to the current layer.
UIEvent.layerY Read only
Returns the vertical coordinate of the event relative to the current layer.
UIEvent.pageX Read only
Returns the horizontal coordinate of the event relative to the whole document.
UIEvent.pageY Read only
Returns the vertical coordinate of the event relative to the whole document.
UIEvent.sourceCapabilities  Read only
Returns an instance of the InputDeviceCapabilities interface which provides information about the physical device responsible for generating a touch event.
UIEvent.viewRead only
Returns a WindowProxy that contains the view that generated the event.
UIEvent.which Read only  
Returns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.

For MediaStream Recording events

These events are of type MediaRecorderErrorEvent.

Inherits properties from its parent interface, Event.

error Read only
A DOMException containing information about the error that occurred. Read only.

See also

GlobalEventHandlers.onerror
Events sent to Window.onerror and Element.onerror
HTMLMediaElement.onerror
Events sent to HTMLMediaElement, including <audio> and <video>
MediaRecorder.onerror
Events sent to MediaRecorder.onerror, of type MediaRecorderErrorEvent

ドキュメントのタグと貢献者

 このページの貢献者: Sheppy, Nickolay, teoli, ethertank, louisremi
 最終更新者: Sheppy,