Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Properties

This section describes event related properties, including those described in Document Object Model (DOM) Level 3 Events.

In this section

TopicDescription

absolute

Returns true if absolute values for the alpha, beta, and gamma device orientation properties are provided, and false otherwise.

acceleration

Returns a DeviceAcceleration object representing the acceleration (in m/s2) of the host device in motion along the X, Y, and Z axes.

accelerationIncludingGravity

Returns a DeviceAcceleration object representing the acceleration (in m/s2), including the effect of gravity, of the host device in motion along the X, Y, and Z axes.

actionURL

Gets the URL of a Jump List item that is removed.

This property is not supported for Windows Store apps using JavaScript.

alpha

The amount of rotation (in the range of [0, 360)) around the Z axis, where Z is perpendicular to the screen, and positive out of the screen.

altKey

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

animationName

The name of a keyframe rule that defines the style rules applied by the animation.

attrChange

Gets a value that indicates what type of change occurred.

attrName

Gets the name of the attribute that changed.

beta

The amount of rotation (in the range of [-180, 180)) around the X axis, where X is in the plane of the screen, and positive towards the right hand side of the screen.

bubbles

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

button

Indicates which pointer device button has changed.

buttonID

Gets the Thumbnail Toolbar button ID that is clicked.

This property is not supported for Windows Store apps using JavaScript.

buttons

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

cancelable

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

cancelBubble

Sets or retrieves whether the current event should bubble up the hierarchy of event handlers.

char

Gets a character for a key that is pressed, if available.

charCode

Gets the numeric key code of a key that is pressed.

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

code

The connection close-code provided by the server.

colno

Represents the offset into a line where the error occurred in the script.

contentOverflow

Retrieves a value that indicates whether the document contains additional content after processing the current LayoutRect object.

ctrlKey

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

currentPoint

Gets a PointerPoint object that provides basic info on the pointer associated with the event.

currentState

Returns the current state of a manipulation event.

currentTarget

Gets the event target that is currently being processed.

data

Gets the data of the event.

dataFld

Sets or retrieves the data column affected by the oncellchange event.

dataTransfer

Retrieves the dataTransfer object associated with the event.

defaultPrevented

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

deltaMode

Gets a value that indicates the unit of measurement for delta values.

deltaX

Gets the distance that a mouse wheel has rotated around the x-axis (horizontal).

deltaY

Gets the distance that a mouse wheel has rotated around the y-axis (vertical).

deltaZ

Gets the distance that a mouse wheel has rotated around the z-axis.

detail

Gets additional information about an event.

detail (IDOMCustomEvent)

Specifies additional information about an event.

elapsedTime (AnimationEvent)

The amount of time the animation has been running, in seconds.

elapsedTime (TransitionEvent)

The amount of time the transition has been running, in seconds.

eventPhase

Gets the event phase that is being evaluated.

expansion

Diameter of the manipulation area from the last MSGestureEvent of the interaction.

files

Returns a FileList of the files being dragged.

fromElement

Gets the object that the mouse pointer exited.

gamma

The amount of rotation (in the range of [-90, 90)) around the Y axis, where Y is in the plane of the screen, and positive towards the top of the screen.

gestureObject

Returns the MSGesture object for an element.

hwTimestamp

Returns the time at which the pointer data was reported by the hardware, in microseconds.

height

The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.

inputMethod

Gets a value that describes how text is entered.

inertiaDestinationX

Represents the predicted horizontal scroll offset after the inertia phase completes.

inertiaDestinationY

Represents the predicted vertical scroll offset after the inertia phase completes.

intermediatePoints

Retrieves a collection of PointerPoint objects that represent the pointer history from the last pointer event up to and including the current pointer event. Each PointerPoint in the collection provides basic info on the pointer associated with the event.

interval

Represents the interval (in milliseconds) at which motion data is being obtained from the underlying hardware of the host device.

isPrimary

Returns whether the pointer associated with the event is the primary pointer for the current mouse, touch, or pen interaction.

isTrusted

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

key

Gets the key identifier of a key that is pressed.

keyCode

Gets the numeric key code of a key that is pressed.

lastState

Returns the last state after a manipulation change event.

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.

lengthComputable

Specifies whether the total size of the operation is known.

lineno

Represents the line number where the an error occurred in the script.

loaded

Specifies the number of bytes downloaded since the beginning of the operation.

locale

Gets the locale name for the event.

location

Gets the location of a key on the keyboard or device.

metaKey

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

msManipulationViewsEnabled

Returns whether manipulation feature support is available, such as touch panning and zooming using Cascading Style Sheets (CSS) rules.

maxTouchPoints

The maximum number of simultaneous touch contacts supported by the device.

newValue

Gets the new value of the attribute or text node.

origin

Gets the Uniform Resource Identifier (URI) of the document of origin.

persisted

Indicates if a webpage is loading from a cache.

pointerEnabled

Deprecated. Indicates if pointer events are fired for pointing input.

pointerId

The unique identifier of the contact for a touch, mouse or pen.

pointerType

Returns whether the source of the event is touch, pen or mouse.

pressure

Returns the normalized pressure of the pointer input in the range of [0,1], where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.

prevValue

Gets the previous value of the attribute or text node.

propertyName

Name of the CSS property associated with the transition.

reason

Server close-connection reason.

relatedNode

Gets a second node related to a mutation event.

relatedTarget

Gets the secondary element that is involved in an event.

repeat

Gets a value that indicates whether a key was pressed and held.

returnValue

Gets or sets a value that indicates whether to warn the user prior to navigating away from a page.

rotation

Clockwise rotation of the cursor around its own major axis expressed as a value in radians from the last MSGestureEvent of the interaction.

rotationRate

Returns a DeviceRotationRate object representing the rotation of the hosting device in space.

scale

Scale factor for zoom from the last MSGestureEvent of the interaction.

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.

source

Gets the window object that sent the message.

srcElement

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

state

Returns the information that was provided to pushState or replaceState.

target

Gets the element that is the target of the event.

target (MSGesture)

Get or set the element that you want to fire MSGestureEvents.

tiltX

Returns the angle between the Y-Z plane and the plane containing the pen axis and the Y axis in the range of -90 to +90. A positive X tilt is to the right.

tiltY

Returns the angle between the X-Z and transducer-X planes. A positive Y tilt is toward the user.

timeStamp

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

toElement

Gets the object that the mouse pointer entered.

total

Specifies the total number of bytes to be transferred during the operation, if known.

translationX

Translation along x-axis from the last MSGestureEvent of the interaction.

translationY

Translation along y-axis from the last MSGestureEvent of the interaction.

type

Gets the name of an event.

types

Returns a string list of formats that were sent in the ondragstart event.

velocityAngular

Angular velocity in radians.

velocityExpansion

Velocity of expanding manipulation area.

velocityX

Velocity of movement along x-axis.

velocityY

Velocity of movement along y-axis.

view

Gets the window object that an event is generated from.

wasClean

Indicates whether the server connection closed cleanly.

wheelDelta

Gets the distance that a mouse wheel has rotated around the y-axis.

which

Gets the numeric code of a key that is pressed.

width

The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.

x

Describes the acceleration (in m/s2) of the host device in motion along the X, axis.

y

Describes the acceleration (in m/s2) of the host device in motion along the Y, axis.

z

Describes the acceleration (in m/s2) of the host device in motion along the Z, axis.

 

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.