键盘事件(Keyboard Events)
| 属性 | 值 | 描述 |
| onkeydown |
script |
当按下按键时运行脚本 |
| onkeypress |
script |
当按下并松开按键时运行脚本 |
| onkeyup |
script |
当松开按键时运行脚本
|
鼠标事件(Mouse Events)
通过鼠标触发事件, 类似用户的行为:
| 属性 | 值 | 描述 |
| onclick |
script |
当单击鼠标时运行脚本 |
| ondblclick |
script |
当双击鼠标时运行脚本 |
| ondrag New |
script |
当拖动元素时运行脚本 |
| ondragend New |
script |
当拖动操作结束时运行脚本 |
| ondragenter New |
script |
当元素被拖动至有效的拖放目标时运行脚本 |
| ondragleave New |
script |
当元素离开有效拖放目标时运行脚本 |
| ondragover New |
script |
当元素被拖动至有效拖放目标上方时运行脚本 |
| ondragstart New |
script |
当拖动操作开始时运行脚本 |
| ondrop New |
script |
当被拖动元素正在被拖放时运行脚本 |
| onmousedown |
script |
当按下鼠标按钮时运行脚本 |
| onmousemove |
script |
当鼠标指针移动时运行脚本 |
| onmouseout |
script |
当鼠标指针移出元素时运行脚本 |
| onmouseover |
script |
当鼠标指针移至元素之上时运行脚本 |
| onmouseup |
script |
当松开鼠标按钮时运行脚本 |
| onmousewheel New |
script |
当转动鼠标滚轮时运行脚本 |
| onscroll New |
script |
当滚动元素的滚动条时运行脚本
|
posted @
2022-10-21 17:07
君天动万象
阅读(
170)
评论()
收藏
举报