Jaa


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
  • Properties

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

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

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IDOMDragEvent

IDOMMouseWheelEvent

IDOMWheelEvent