IDOMEvent interface

Provides properties and methods that are common to all Document Object Model (DOM) events.

Members

The IDOMEvent interface inherits from the IDispatch interface. IDOMEvent also has these types of members:

  • Methods
  • Properties

Methods

The IDOMEvent interface has these methods.

Method Description
initEvent

Initializes a new generic event that the IDocumentEvent::createEvent method created.

preventDefault

Cancels the default action of an event.

stopImmediatePropagation

Prevents any further propagation of an event.

stopPropagation

Prevents propagation of an event beyond the current target.

 

Properties

The IDOMEvent interface has these properties.

Property Description

bubbles

Gets a value that indicates whether an event propagates up from the event target.

cancelable

Gets a value that indicates whether you can cancel an event's default action.

cancelBubble

Gets or sets a value that indicates whether an event should be stopped from propagating up from the current target.

currentTarget

Gets the event target that is currently being processed.

defaultPrevented

Gets a value that indicates whether the default action should be canceled.

eventPhase

Gets the event phase that is being evaluated.

isTrusted

Gets a value that indicates whether a trusted event source created an event.

srcElement

Gets the element that the event was originally dispatched to. Compare to IDOMEvent::target.

target

Gets the element that is the target of the event.

timeStamp

Gets the time, in milliseconds, when an event occurred.

type

Gets the name of an event.

 

Remarks

The Event base interface provides event properties to all of the other event types.

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