Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

createEvent method

Creates an event object to be used in conjunction with the dispatchEvent method.

Document Object Model (DOM) Level 2 Events Specification, Section 1.5Internet Explorer 10

 

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/valueDescription
S_OK
DOMException.NOT_SUPPORTED_ERR
9

The specified event interface is not supported.

 

Exceptions

ExceptionCondition
NotSupportedError

The specified event interface is not supported. For versions earlier than Internet Explorer 10, NOT_SUPPORTED_ERR is returned.

 

Standards information

 

 

Community Additions

ADD
Show:
© 2015 Microsoft