Javascript Reference
Categories: event

javascript event initMouseEvent( )

@July 30, 2008, 12:31 p.m.
initMouseEvent( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

initMouseEvent("eventType", bubblesFlag, cancelableFlag, view, detailVal, screenX, screenY, clientX, clientY, ctrlKeyFlag, altKeyFlag, shiftKeyFlag, metaKeyFlag, buttonCode, relatedTargetNodeRef)

Initializes a newly created event object with a complete set of property values associated with any mouse event. All parameters must be present, and must be set to default values (such as false for Boolean key flags, zero for integer values, or null for a node reference) if the values are not significant for the event type.

 
Parameters
 
  • String identifier for the event's type, such as click, mousedown, mousemove, mouseout, mouseover, mouseup.
  • Boolean value (true | false) that determines whether the event's default propagation behavior is to bubble.
  • Boolean value (true | false) that determines whether the event's default action may be prevented via the preventDefault( ) method.
  • Reference to the window or frame object in which the dynamically-generated event is supposed to have occurred.
  • Integer code for detail data associated with the event.
  • Integer for horizontal screen coordinate.
  • Integer for vertical screen coordinate.
  • Integer for horizontal browser window coordinate.
  • Integer for vertical browser window coordinate.
  • Boolean value (true | false) of the Control key state for this event.
  • Boolean value (true | false) of the Alt key state for this event.
  • Boolean value (true | false) of the Shift key state for this event.
  • Boolean value (true | false) of the Meta key(e.g., Macintosh Command key) state for this event.
  • Integer button code for this event.
  • Reference to node receiving the previous or next mouse event.
 
Returned Value

None.


Powered by Linode.