Die methode createevent. Erzeugt oder öffnet ein event. Objekt, das dann an dispatchevent übergeben wird. Creates an event object with the specified type. After a new event object is created, initialize it first. See the eventtype parameter. When the event is initialized, it can be dispatched with the dispatchevent method.
The method is used to initialize the value of an event created using. Events initialized in this way must have been created with the. Initkeyevent must be called to set the event before it is dispatched. The initkeyevent method is only supported by firefox. In google chrome, safari and internet explorer from version 9, use the initkeyboardevent method instead. In internet explorer before version 9, use the createeventobject method to create a new event object and the fireevent method to dispatch it.