initMouseEvent method
void
initMouseEvent(])
The MouseEvent.initMouseEvent()
method initializes the
value of a mouse event once it's been created (normally using the
Document.createEvent method).
Warning: Do not use this method anymore as it is deprecated.
Instead use specific event constructors, like
MouseEvent.MouseEvent
. The page on Creating and triggering events gives more information about the way to use these.
Events initialized in this way must have been created with the Document.createEvent method. This method must be called to set the event before it is dispatched, using EventTarget.dispatchEvent.
Implementation
external void initMouseEvent(
String typeArg, [
bool bubblesArg,
bool cancelableArg,
Window? viewArg,
int detailArg,
int screenXArg,
int screenYArg,
int clientXArg,
int clientYArg,
bool ctrlKeyArg,
bool altKeyArg,
bool shiftKeyArg,
bool metaKeyArg,
int buttonArg,
EventTarget? relatedTargetArg,
]);