createEvent method
Creates an event object to be used in conjunction with the dispatchEvent method.
![]() ![]() |
Syntax
HRESULT retVal = object.createEvent(eventInterface, retVal);
Parameters
- eventInterface [in]
-
Type: DOMString
The name of a DOM Events interface to be supported by the event object.
- retVal [out, retval]
-
Type: Event
Return value
Type: HRESULT
This method can return one of these values.
| Return code/value | Description |
|---|---|
| |
|
The specified event interface is not supported. |
Exceptions
| Exception | Condition |
|---|---|
|
The specified event interface is not supported. For versions earlier than Internet Explorer 10, NOT_SUPPORTED_ERR is returned. |
Standards information
Show:

