initErrorEvent
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
Microsoft Developer Network: [Windows Internet Explorer API reference Article]