IDOMMouseEvent interface
Provides properties and methods for mouse pointer events.
Members
The IDOMMouseEvent interface inherits from the IDispatch interface. IDOMMouseEvent also has these types of members:
Methods
The IDOMMouseEvent interface has these methods.
| Method | Description |
|---|---|
| getModifierState |
Queries the state of the specified modifier key. |
| initMouseEvent |
Initializes a new mouse event that the IDocumentEvent::createEvent method created. |
Properties
The IDOMMouseEvent interface has these properties.
| Property | Description |
|---|---|
|
Gets a value that indicates whether the Alt key is pressed. | |
|
Indicates which pointer device button has changed. | |
|
Indicates which pointer device buttons are being pressed, expressed as a bitmask. | |
|
Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area). | |
|
Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area). | |
|
Gets a value that indicates whether the Ctrl key is pressed. | |
|
Gets the object that the mouse pointer exited. | |
|
Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element. | |
|
Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element. | |
|
Gets a value that indicates whether the Meta/Control key is pressed. | |
|
Gets the x-coordinate of the mouse pointer, relative to the target node. | |
|
Gets the y-coordinate of the mouse pointer, relative to the target node. | |
|
Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the page. | |
|
Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page. | |
|
Gets the secondary element that is involved in an event. | |
|
Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the screen. | |
|
Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the screen. | |
|
Gets a value that indicates whether the Shift key is pressed. | |
|
Gets the object that the mouse pointer entered. | |
|
Gets which mouse button is pressed. | |
|
Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element. | |
|
Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element. |
Remarks
Mouse event properties are also part of IDOMDragEvent, IDOMMouseWheelEvent, and IDOMWheelEvent events.
Requirements
|
Minimum supported client |
Windows Vista with SP1, Windows 7 |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also