Initializes a new generic event that the createEvent method created.
![]() |
Syntax
object.initEvent(eventType, canBubble, cancelable)Parameters
- eventType [in]
-
Type: String
The event type.
- canBubble [in]
-
Type: Boolean
- cancelable [in]
-
Type: Boolean
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
Remarks
You can call the initEvent method only before the dispatchEvent method dispatches the event object. After the event is dispatched, its properties cannot be changed.
See also
- SVGZoomEvent
- BeforeUnloadEvent
- CompositionEvent
- CustomEvent
- Event
- DragEvent
- FocusEvent
- KeyboardEvent
- MessageEvent
- MouseEvent
- MutationEvent
- StorageEvent
- TextEvent
- UIEvent
- Reference
- bubbles
- cancelable
- dispatchEvent
Build date: 11/29/2012
