createEvent(eventType )
|
|
Parameters
|
StringeventType
Specifies the type of Event interface to be created. The only event module supported by this method is "WindowEvents".
If the Event is to be dispatched with the dispatchEvent method, the appropriate event init method must be called after creation in order to initialize the Event's values. As an example, a user wishing to synthesize a WindowEvent would call createEvent with the parameter "WindowEvents". The initWindowEvent method could then be called on the newly created WindowEvent to set the specific type of WindowEvent to be dispatched and to set its context information.
|
Returns
|
Event. The newly created Event.
|
Throws
|
WindowException
NOT_SUPPORTED_ERR: Raised if the implementation does not support the type of Event interface requested.
|