The event object gives you information about what event that occurs.
Property |
Description |
altKey |
Returns whether the Alt key is pressed or not |
button
|
Returns which mouse button is pressed |
cancelBubble
|
Sets or retrieves whether the current should bubble up
the hierarchy or not |
clientX
|
Returns the x coordinate of the cursor |
clientY
|
Returns the y coordinate of the cursor |
ctrlKey
|
Returns whether the Ctrl key is pressed or not |
dataFld
|
Returns the data column affected by the oncellchange event |
fromElement
|
Returns the object that the cursor is exiting |
keyCode
|
Sets or returns the Unicode of the key pressed |
offsetX
|
Returns the horizontal coordinate of the cursor |
offsetY
|
Returns the vertical coordinate of the cursor |
propertyName
|
Returns the name of the property that has changed |
reason
|
Returns the reason for completion for a data source
object |
recordset
|
Returns a recordset |
repeat
|
Returns whether the event is to be repeated or not |
returnValue
|
Sets or returns the value that will be returned from
the event |
screenX
|
Returns the x coordinate of the cursor, relative to the
screen |
screenY
|
Returns the y coordinate of the cursor, relative to the
screen |
shiftKey
|
Returns whether the Shift key is pressed or not |
srcElement
|
Returns the object that fired the event |
srcFilter
|
Returns the filter object that fired the onfilterchange
event |
srcUrn
|
Returns the universal resource name of the behavior that
fired the event |
toElement
|
Returns the object the user moves to |
type
|
Returns the name of the eventtype |
x
|
Returns the cursor's x coordinate |
y
|
Returns the cursor's y coordinate |
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.