TOC PREV NEXT INDEX

domref



initMouseEvent


This method intializes the value of a mouse event once it's been created (by the createEvent() method on the DocumentEvent interface).

Syntax

event.initMouseEvent(String typeArg, 
 
  boolean canBubbleArg,
 
  boolean cancelableArg,
 
  AbstractView viewArg,
 
  int detailArg,
 
  int screenXArg,
 
  int screenYArg,
 
  int clientXArg,
 
  int clientYArg,
 
  boolean ctrlKeyArg,
 
  boolean altKeyArg,
 
  boolean shiftKeyArg,
 
  boolean metaKeyArg,
 
  short buttonArg,
 
  EventTarget relatedTargetArg) 
 

Parameters
typeArg
 

Specifies - the event type.

canBubbleArg
 

Specifies - whether or not the event can bubble.

cancelableArg
 

Specifies - whether or not the event's default action can be prevented.

viewArg
 

Specifies - the Event's AbstractView.

detailArg
 

Specifies - the Event's mouse click count.

screenX
 

ArgSpecifies - the Event's screen x coordinate

screenYArg
 

Specifies - the Event's screen y coordinate

clientXArg
 

Specifies - the Event's client x coordinate

clientYArg
 

Specifies - the Event's client y coordinate

ctrlKeyArg
 

Specifies - whether or not control key was depressed during the Event.

altKeyArg
 

Specifies - whether or not alt key was depressed during the Event.

shiftKeyArg
 

Specifies - whether or not shift key was depressed during the Event.

metaKeyArg
 

Specifies - whether or not meta key was depressed during the Event.

buttonArg
 

Specifies - the Event's mouse button.

relatedTargetArg
 

Specifies - the Event's related EventTarget.


Example

e.initMouseEvent("click", 1, 1, 
  window, 1,
 
  10, 50, 10, 50, 
 
  0, 0, 0, 0, 
 
  1, div1)
 

Notes

None.

Specification

initMouseEvent
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX