| Internet Explorer Name |
Mozilla Name |
Description |
| altKey |
altKey |
Boolean property that returns whether the alt key was pressed during the event. |
| cancelBubble |
stopPropagation() |
Used to stop the event from bubbling farther up the tree. |
| clientX |
clientX |
The X coordinate of the event, in relation to the element viewport. |
| clientY |
clientY |
The Y coordinate of the event, in relation to the element viewport. |
| ctrlKey |
ctrlKey |
Boolean property that returns whether the Ctrl key was pressed during the event. |
| fromElement |
relatedTarget |
For mouse events, this is the element from which the mouse moved away. |
| keyCode |
keyCode |
For keyboard events, this is a number representing the key that was pressed. It is 0 for mouse events. |
| returnValue |
preventDefault() |
Used to prevent the event's default action from occurring. |
| screenX |
screenX |
The X coordinate of the event, in relation to the screen. |
| screenY |
screenY |
The Y coordinate of the event, in relation to the screen. |
| shiftKey |
shiftKey |
Boolean property that returns whether the Shift key was pressed during the event. |
| srcElement |
target |
The element to which the event was originally dispatched. |
| toElement |
currentTarget |
For mouse events, this is the element to which the mouse moved. |
| type |
type |
Returns the name of the event. |
发表评论