Export (0) Print
Expand All

Legacy Event Properties

This section describes properties associated with legacy events supported by earlier versions of Windows Internet Explorer. For best results, we recommend designing webpages that rely on web standards. For more info, see Events.

In this section

TopicDescription

altKey

Retrieves a value that indicates the state of the ALT key. For the standards based property, see altKey.

altLeft

Retrieves a value that indicates the state of the left ALT key.

button

Sets or retrieves the mouse button pressed by the user.

This property is not supported for Windows Store apps using JavaScript. For the standards based property that can be used with Windows Store apps using JavaScript , see button.

clientX

Sets or retrieves the x-coordinate of the mouse pointer, or user's finger, position relative to the client area of the window, excluding window decorations and scroll bars. For the standards based property, see clientX.

clientY

Sets or retrieves the y-coordinate of the mouse pointer, or user's finger, position relative to the client area of the window, excluding window decorations and scroll bars.

ctrlKey

Sets or retrieves the state of the CTRL key. For the standards based property, see ctrlKey.

ctrlLeft

Sets or retrieves the state of the left CTRL key.

data

Sets or retrieves the body of the onmessage request.

fromElement

Sets or retrieves the object from which activation or the mouse pointer is exiting during the event.

keyCode

Sets or retrieves the Unicode key code associated with the key that caused the event.

nextPage

Retrieves the position of the next page within a print template.

offsetX

Sets or retrieves the x-coordinate of a pointer's position relative to the object firing the event.

offsetY

Sets or retrieves the y-coordinate of a pointer's position relative to the object firing the event.

origin

Sets or retrieves the scheme, hostname, and port of the document that fired the onmessage event.

propertyName

Sets or retrieves the name of the property that changes on the object.

reason

Sets or retrieves the result of the data transfer for a data source object.

repeat

Retrieves whether the onkeydown event is being repeated. For the standards based property, see repeat.

returnValue

Sets or retrieves the return value from the event.

screenX

Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen. For the standards based property, see screenX.

screenY

Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen. For the standards based property, see screenY.

shiftKey

Retrieves the state of the SHIFT key. For the standards based property, see shiftKey.

shiftLeft

Retrieves the state of the left SHIFT key.

source

Retrieves the source window object of the onmessage event.

srcElement

Sets or retrieves the object that fired the event.

srcFilter

Sets or retrieves the filter object that caused the onfilterchange event to fire.

srcUrn

Retrieves the Uniform Resource Name (URN) of the behavior that fired the event.

toElement

Sets or retrieves a reference to the object toward which the user is moving the mouse pointer or, for a touch device, a finger.

type

Sets or retrieves the event name from the event object.

url

Sets or retrieves the fully qualified URL of the document that fired the event.

wheelDelta

Retrieves the distance and direction the wheel button has rolled.

which

Gets which mouse button is pressed.

x

Sets or retrieves the x-coordinate (in pixels) of the mouse pointer, or user's finger, offset from the closest relatively positioned parent element of the element that fired the event.

y

Sets or retrieves the y-coordinate (in pixels) of the mouse pointer, or user's finger, offset from the closest relatively positioned parent element of the element that fired the event.

 

 

 

Show:
© 2014 Microsoft