This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

initErrorEvent

Method of dom/Errordom/Error

Syntax

var object = object.initErrorEvent(typeArg, canBubbleArg, cancelableArg, messageArg, filenameArg, linenoArg);

Parameters

typeArg

Data-type
any

The type of the event being created

canBubbleArg

Data-type
any

Indicates whether the event can bubble. When true the event should propagate upward. When false the event does not propagate upward.

cancelableArg

Data-type
any

Indicates whether the event’s default action can be prevented. When true, the default action can be canceled. When false, the default action cannot be canceled.

messageArg

Data-type
any

The error message string.

filenameArg

Data-type
any

The absolute URL of the script in which the error originally occurred.

linenoArg

Data-type
unsigned long

The line number where the error occurred in the script.

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

This method can return one of these values.

S_OK

Type: HRESULT

This method can return one of these values.

S_OK

Syntax

Attributions