A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent below:

ErrorEvent: ErrorEvent() constructor - Web APIs

ErrorEvent: ErrorEvent() constructor

Note: This feature is available in Web Workers.

The ErrorEvent() constructor creates a new ErrorEvent object.

Syntax
new ErrorEvent(type)
new ErrorEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive.

options Optional

An object that, in addition of the properties defined in Event(), can have the following properties:

message Optional

A string containing a human-readable error message describing the problem.

filename Optional

A string containing the name of the script file in which the error occurred.

lineno Optional

An integer containing the line number of the script file on which the error occurred.

colno Optional

An integer containing the column number of the script file on which the error occurred.

error Optional

A JavaScript value, such as an Error or DOMException, representing the error associated with this event.

Return value

A new ErrorEvent object.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4