Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.