Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

The ErrorEvent interface represents events providing information related to errors in scripts or in files.

Properties

Also inherits properties from its parent Event.

ErrorEvent.message Read only
Is a DOMString containing a human-readable error message describing the problem.
ErrorEvent.filename Read only
Is a DOMString containing the name of the script file in which the error occurred.
ErrorEvent.lineno Read only
Is an integer containing the line number of the script file on which the error occurred.
ErrorEvent.colno Read only
Is an integer containing the column number of the script file on which the error occurred.
ErrorEvent.error Read only
Is a JavaScript Object that is concerned by the event.

Constructor

ErrorEvent()
Creates an ErrorEvent event with the given parameters.

Methods

Inherits methods from its parent Event.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'ErrorEvent' in that specification.
Living Standard Added the error property and the 5th parameter to the constructor.
HTML5
The definition of 'ErrorEvent' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
ErrorEvent() constructor ? ? ? ? ? ?
colno ? ? ? ? ? ?
error ? ? ? ? ? ?
filename ? ? ? ? ? ?
lineno ? ? ? ? ? ?
message ? ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?
ErrorEvent() constructor ? ? ? ? ? ? ?
colno ? ? ? ? ? ? ?
error ? ? ? ? ? ? ?
filename ? ? ? ? ? ? ?
lineno ? ? ? ? ? ? ?
message ? ? ? ? ? ? ?

See also

Etiquetas y colaboradores del documento

Etiquetas: 
Colaboradores en esta página: connorshea, AndySky21, arronei, klebba, erikadoyle, fscholz, agentme, teoli
Última actualización por: connorshea,