Home >Web Front-end >JS Tutorial >JS mouse event collection recommended collection_javascript skills

JS mouse event collection recommended collection_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:59:451181browse
General events
Event Browser support Description
onClick HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Mouse click event, mostly used for mouse clicks within the range controlled by an object
onDblClick HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Mouse double click event
onMouseDown HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
The button on the mouse was pressed
onMouseUp HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Events fired when the mouse is pressed and released
onMouseOver HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Event triggered when the mouse moves over the range of an object
onMouseMove HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Events triggered when the mouse moves
onMouseOut HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N3 | O3
Event triggered when the mouse leaves the scope of an object
onKeyPress HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
An event triggered when a key on the keyboard is pressed and released. [Note: There must be a focused object in the page]
onKeyDown HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Event triggered when a key on the keyboard is pressed [Note: There must be a focused object in the page]
onKeyUp HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Event triggered when a key on the keyboard is pressed and released [Note: There must be a focused object in the page]
Page related events
Event Browser support Description
onAbort HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N3 | O
Image was interrupted by user while downloading
onBeforeUnload HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the content of the current page is about to be changed
onError HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N3 | O
Capture errors that occur on the current page for some reason, such as script errors and external data reference errors
onLoad HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Events triggered when the page is empty and transferred to the browser, including the completion of external file introduction
onMove HTML: 2 | 3 | 3.2 | 4
Browser: IE | N4 | O
Event triggered when the browser window is moved
onResize HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Event triggered when the browser window size is changed
onScroll HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the browser's scroll bar position changes
onStop HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the browser's stop button is pressed or the file being downloaded is interrupted
onUnload HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Event triggered when the current page will be changed
Form related events
Event Browser support Description
onBlur HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Event triggered when the current element loses focus [can be triggered by mouse and keyboard]
onChange HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Events triggered when the current element loses focus and the content of the element changes [can be triggered by mouse and keyboard]
onFocus HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Event triggered when an element gets focus
onReset HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N3 | O3
Event triggered when the RESET attribute in the form is fired
onSubmit HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
An event triggered when a form is submitted
Rolling subtitle event
Event Browser support Description
onBounce HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the content in Marquee moves outside the display range of Marquee
onFinish HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the Marquee element completes the content that needs to be displayed
onStart HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the Marquee element starts displaying content
Edit event
Event Browser support Description
onBeforeCopy HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered before the currently selected content of the page is to be copied to the viewer's system clipboard
onBeforeCut HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when part or all of the content in the page will be moved away from the current page [clipping] and moved to the viewer's system clipboard
onBeforeEditFocus HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
The current element will enter the editing state
onBeforePaste HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when content is about to be transferred [pasted] from the viewer's system clipboard to the page
onBeforeUpdate HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Notify target audience when a viewer pastes content from the system clipboard
onContextMenu HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Events triggered when the browser presses the right mouse button to display the menu or when the page menu is triggered by keyboard keys [Try adding onContentMenu="return false" to the in the page to disable the use of the right mouse button Already]
onCopy HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the currently selected content on the page is copied
onCut HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the currently selected content on the page is cut
onDrag HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when an object is dragged [Activity event]
onDragDrop HTML: 2 | 3 | 3.2 | 4
Browser: IE | N4 | O
An external object is dragged into the current window or frame by the mouse
onDragEnd HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the mouse drag ends, that is, the mouse button is released
onDragEnter HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the object dragged by the mouse enters its container scope
onDragLeave HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the object dragged by the mouse leaves the scope of its container
onDragOver HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when a dragged object is dragged within the scope of another object container [Activity event]
onDragStart HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when an object is to be dragged
onDrop HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
During a dragging process, an event is triggered when the mouse button is released
onLoseCapture HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when an element loses the selection focus formed by mouse movement
onPaste HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when content is pasted
onSelect HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event when text content is selected
onSelectStart HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when text content selection will start to occur
Data Binding
Event Browser support Description
onAfterUpdate HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when data completes transfer from data source to object
onCellChange HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
When the data source changes
onDataAvailable HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when data reception is completed
onDatasetChanged HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Events triggered when the data source changes
onDatasetComplete HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when all valid data from the sub-data source is read
onErrorUpdate HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
When the data transfer is canceled using the onBeforeUpdate event trigger, replace the onAfterUpdate event
onRowEnter HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Events triggered when the data in the current data source changes and there is new valid data
onRowExit HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the data of the current data source is about to change
onRowsDelete HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the current data record will be deleted
onRowsInserted HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the current data source is about to insert a new data record
External events
Event Browser support Description
onAfterPrint HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the document is printed
onBeforePrint HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when the document is about to be printed
onFilterChange HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the filter effect of an object changes
onHelp HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
Event triggered when the viewer presses F1 or selects the browser's help
onPropertyChange HTML: 2 | 3 | 3.2 | 4
Browser: IE5 | N | O
Event triggered when one of the properties of the object changes
onReadyStateChange HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N | O
当对象的初始化属性值发生变化时触发

 

一般事件 事件 浏览器支持 描述
onClick IE3|N2|O3 鼠标点击事件,多用在某个对象控制的范围内的鼠标点击
onDblClick IE4|N4|O 鼠标双击事件
onMouseDown IE4|N4|O 鼠标上的按钮被按下了
onMouseUp IE4|N4|O 鼠标按下后,松开时激发的事件
onMouseOver IE3|N2|O3 当鼠标移动到某对象范围的上方时触发的事件
onMouseMove IE4|N4|O 鼠标移动时触发的事件
onMouseOut IE4|N3|O3 当鼠标离开某对象范围时触发的事件
onKeyPress IE4|N4|O 当键盘上的某个键被按下并且释放时触发的事件.[注意:页面内必须有被聚焦的对象]
onKeyDown IE4|N4|O 当键盘上某个按键被按下时触发的事件[注意:页面内必须有被聚焦的对象]
onKeyUp IE4|N4|O 当键盘上某个按键被按放开时触发的事件[注意:页面内必须有被聚焦的对象]
页面相关事件 事件 浏览器支持 描述
onAbort IE4|N3|O 图片在下载时被用户中断
onBeforeUnload IE4|N|O 当前页面的内容将要被改变时触发的事件
onError IE4|N3|O 捕抓当前页面因为某种原因而出现的错误,如脚本错误与外部数据引用的错误
onLoad IE3|N2|O3 页面内空完成传送到浏览器时触发的事件,包括外部文件引入完成
onMove IE|N4|O 浏览器的窗口被移动时触发的事件
onResize IE4|N4|O 当浏览器的窗口大小被改变时触发的事件
onScroll IE4|N|O 浏览器的滚动条位置发生变化时触发的事件
onStop IE5|N|O 浏览器的停止按钮被按下时触发的事件或者正在下载的文件被中断
onUnload IE3|N2|O3 当前页面将被改变时触发的事件
表单相关事件 事件 浏览器支持 描述
onBlur IE3|N2|O3 当前元素失去焦点时触发的事件 [鼠标与键盘的触发均可]
onChange IE3|N2|O3 当前元素失去焦点并且元素的内容发生改变而触发的事件 [鼠标与键盘的触发均可]
onFocus IE3|N2|O3 当某个元素获得焦点时触发的事件
onReset IE4|N3|O3 当表单中RESET的属性被激发时触发的事件
onSubmit IE3|N2|O3 一个表单被递交时触发的事件
滚动字幕事件 事件 浏览器支持 描述
onBounce IE4|N|O 在Marquee内的内容移动至Marquee显示范围之外时触发的事件
onFinish IE4|N|O 当Marquee元素完成需要显示的内容后触发的事件
onStart IE4|N|O 当Marquee元素开始显示内容时触发的事件
编辑事件 事件 浏览器支持 描述
onBeforeCopy IE5|N|O 当页面当前的被选择内容将要复制到浏览者系统的剪贴板前触发的事件
onBeforeCut IE5|N|O 当页面中的一部分或者全部的内容将被移离当前页面[剪贴]并移动到浏览者的系统剪贴板时触发的事件
onBeforeEditFocus IE5|N|O 当前元素将要进入编辑状态
onBeforePaste IE5|N|O 内容将要从浏览者的系统剪贴板传送[粘贴]到页面中时触发的事件
onBeforeUpdate IE5|N|O 当浏览者粘贴系统剪贴板中的内容时通知目标对象
onContextMenu IE5|N|O 当浏览者按下鼠标右键出现菜单时或者通过键盘的按键触发页面菜单时触发的事件 [试试在页面中的中加入onContentMenu="return false"就可禁止使用鼠标右键了]
onCopy IE5|N|O 当页面当前的被选择内容被复制后触发的事件
onCut IE5|N|O 当页面当前的被选择内容被剪切时触发的事件
onDrag IE5|N|O 当某个对象被拖动时触发的事件 [活动事件]
onDragDrop IE|N4|O 一个外部对象被鼠标拖进当前窗口或者帧
onDragEnd IE5|N|O 当鼠标拖动结束时触发的事件,即鼠标的按钮被释放了
onDragEnter IE5|N|O 当对象被鼠标拖动的对象进入其容器范围内时触发的事件
onDragLeave IE5|N|O 当对象被鼠标拖动的对象离开其容器范围内时触发的事件
onDragOver IE5|N|O 当某被拖动的对象在另一对象容器范围内拖动时触发的事件
onDragStart IE4|N|O 当某对象将被拖动时触发的事件
onDrop IE5|N|O 在一个拖动过程中,释放鼠标键时触发的事件
onLoseCapture IE5|N|O 当元素失去鼠标移动所形成的选择焦点时触发的事件
onPaste IE5|N|O 当内容被粘贴时触发的事件
onSelect IE4|N|O 当文本内容被选择时的事件
onSelectStart IE4|N|O 当文本内容选择将开始发生时触发的事件
数据绑定 事件 浏览器支持 描述
onAfterUpdate IE4|N|O 当数据完成由数据源到对象的传送时触发的事件
onCellChange IE5|N|O 当数据来源发生变化时
onDataAvailable IE4|N|O 当数据接收完成时触发事件
onDatasetChanged IE4|N|O 数据在数据源发生变化时触发的事件
onDatasetComplete IE4|N|O 当来子数据源的全部有效数据读取完毕时触发的事件
onErrorUpdate IE4|N|O onBeforeUpdate 이벤트 트리거를 사용하여 데이터 전송이 취소되면 onAfterUpdate 이벤트를 교체합니다.
onRowEnter IE5|N|O 현재 데이터 소스의 데이터가 변경되고 유효한 새 데이터가 있을 때 트리거되는 이벤트입니다. 🎜>onRowExit IE5|N|O 현재 데이터 소스의 데이터가 변경되려고 할 때 트리거되는 이벤트
onRowsDelete IE5|N|O 현재 데이터 레코드가 삭제될 때 트리거되는 이벤트
onRowsInserted IE5|N| O 현재 데이터 소스가 삽입되려고 합니다. 새로운 데이터가 기록될 때 이벤트가 발생합니다.
데이터 바인딩 이벤트 브라우저 지원 설명
onAfterPrint IE5|N|O 문서가 인쇄될 때 이벤트가 발생합니다.
onBeforePrint IE5|N |O 문서가 인쇄되려고 할 때 발생 Event
onFilterChange IE4|N|O 객체의 필터 효과가 변경될 때 발생하는 이벤트
onHelp IE4|N|O 뷰어가 F1을 누르거나 항목을 선택할 때 발생하는 이벤트 브라우저 도움말
onPropertyChange IE5|N|O 객체의 속성 중 하나가 변경될 때 발생하는 이벤트
onReadyStateChange IE4|N|O 객체의 초기화 속성 값이 변경될 때 발생하는 이벤트

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn