The Event object represents the state of an event, such as the element in
which the event occurred, the state of the keyboard keys, the location of the
mouse, and the state of the mouse buttons.
The event object is available only during an event - that is, you can use it in
event handlers but not in other code.
In VBScript, you must access the event object through the window object.
The Event object's collections, properties, methods, and events are described
below:
Property |
Description |
N |
IE |
W3C |
Abstract |
Returns the Abstract content in an Advanced Stream
Redirector (ASX) file |
|
6 |
|
altKey |
Sets or returns a Boolean value that indicates the
state of the ALT key |
|
4 |
|
altLeft |
Returns a Boolean value that indicates the state of the
left ALT key |
|
5.5 |
|
banner |
Returns the Banner content in an ASX file |
|
6 |
|
button
|
Sets or returns the mouse button pressed by the user
- 0 - Default. No button pressed
- 1 - Left button pressed
- 2 - Right button pressed
- 3 - Left and right buttons pressed
- 4 - Middle button pressed
- 5 - Left and middle buttons pressed
- 6 - Right and middle buttons pressed
- 7 - All three buttons are pressed
|
|
4 |
|
cancelBubble
|
Sets or returns a Boolean value that indicates whether
or not the current event should bubble up
the hierarchy of event handlers |
|
4 |
|
clientX
|
Sets or returns the x-coordinate of the mouse pointer -
relative to the screen, excluding decorations and scroll bars |
|
4 |
|
clientY
|
Sets or returns the y-coordinate of the mouse pointer -
relative to the screen, excluding decorations and scroll bars |
|
4 |
|
contentOverflow |
|
|
5.5 |
|
ctrlKey
|
Sets or returns a Boolean value that indicates the
state of the CTRL key |
|
4 |
|
ctrlLeft |
Sets or returns a Boolean value that indicates the
state of the left CTRL key |
|
5.5 |
|
dataFld
|
Sets or returns the data column affected by the
oncellchange event |
|
5 |
|
fromElement
|
Sets or returns the object from which activation or the
mouse pointer is exiting during the event |
|
4 |
|
keyCode
|
Sets or returns the UNICODE of the key pressed |
|
4 |
|
MoreInfo |
Returns the MoreInfo content in an ASX file |
|
6 |
|
nextPage |
Returns the position of the next page within a print
template |
|
5.5 |
|
offsetX
|
Sets or returns the x-coordinate of the mouse pointer
relative to the object firing the event |
|
4 |
|
offsetY
|
Sets or returns the y-coordinate of the mouse pointer
relative to the object firing the event |
|
4 |
|
propertyName
|
Sets or returns the name of the property that has changed
on the object |
|
5 |
|
qualifier |
|
|
5 |
|
reason
|
Sets or returns the result of a data transfer for a
data source
- 0 - Successfully
- 1 - Aborted
- 2 - Error
|
|
4 |
|
recordset
|
Sets or returns a reference to the default record set
in a data source |
|
4 |
|
repeat
|
Returns a Boolean value that indicates whether the
ONKEYDOWN event is being repeated |
|
5 |
|
returnValue
|
Sets or returns the return value from
an event |
|
4 |
|
saveType |
Returns the clipboard type when ONCONTENTSAVE fires |
|
5.5 |
|
screenX
|
Sets or returns the x-coordinate of the mouse pointer -
relative to the screen |
|
4 |
|
screenY
|
Sets or returns the y-coordinate of the mouse pointer -
relative to the screen |
|
4 |
|
shiftKey
|
Returns a Boolean value that indicates the state of the
SHIFT key |
|
4 |
|
shiftLeft |
Returns a Boolean value that indicates the state of the
left SHIFT key |
|
5.5 |
|
srcElement
|
Sets or returns the object that fired the event |
|
4 |
|
srcFilter
|
Sets or returns the filter object that fired the
ONFILTERCHANGE
event |
|
4 |
|
srcUrn
|
Sets or returns the Universal Resource Name (URN) of the behavior that
fired the event |
|
5 |
|
toElement
|
Sets or returns a reference to the object toward which
the user is moving the mouse pointer |
|
4 |
|
type |
Sets or returns the event name |
|
4 |
|
userName |
|
|
5 |
|
wheelDelta |
Returns the distance and the direction the wheel button
has rolled |
|
5.5 |
|
x |
Sets or returns the x-coordinate (in px) of the mouse
pointer - relative to a relatively positioned parent element |
|
4 |
|
y |
Sets or returns the y-coordinate (in px) of the mouse
pointer - relative to a relatively positioned parent element |
|
4 |
|