Export (0) Print
Expand All

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.

MethodDescription
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.

PropertyDescription

altKey

Gets a value that indicates whether the Alt key is pressed.

button

Indicates which pointer device button has changed.

buttons

Indicates which pointer device buttons are being pressed, expressed as a bitmask.

clientX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area).

clientY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area).

ctrlKey

Gets a value that indicates whether the Ctrl key is pressed.

fromElement

Gets the object that the mouse pointer exited.

layerX

Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.

layerY

Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element.

metaKey

Gets a value that indicates whether the Meta/Control key is pressed.

offsetX

Gets the x-coordinate of the mouse pointer, relative to the target node.

offsetY

Gets the y-coordinate of the mouse pointer, relative to the target node.

pageX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the page.

pageY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page.

relatedTarget

Gets the secondary element that is involved in an event.

screenX

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the screen.

screenY

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the screen.

shiftKey

Gets a value that indicates whether the Shift key is pressed.

toElement

Gets the object that the mouse pointer entered.

which

Gets which mouse button is pressed.

x

Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.

y

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 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IDOMDragEvent
IDOMMouseWheelEvent
IDOMWheelEvent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft