Home >Web Front-end >Front-end Q&A >What event attributes does javascript have?
Javascript event attributes include: onabort, onblur, onchange, onclick, ondblclick, onerror, onfocus, onkeydown, onload, onreset, onselect, onsubmit, etc.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
Events are usually used in conjunction with functions, so that function execution can be driven by the events that occur.
Event Properties | This event occurs when the following conditions occur | FF | N | IE |
---|---|---|---|---|
Image loading interrupted | 1 | 3 | 4 | |
Element loses focus | 1 | 2 | 3 | |
User changes the content of the domain | 1 | 2 | 3 | |
Mouse click on an object | 1 | 2 | 3 | |
Mouse Double click on an object | 1 | 4 | 4 | |
When loading a document or image An error occurred | 1 | 3 | 4 | ##onfocus |
1 | 2 | 3 | onkeydown | |
1 | 4 | 3 | onkeypress | |
1 | 4 | 3 | onkeyup | |
1 | 4 | 3 | onload | |
1 | 2 | 3 | onmousedown | |
1 | 4 | 4 | ##onmousemove | |
1 | 6 | 3 | ##onmouseout | Mouse the mouse away from an element |
4 | 4 | onmouseover | The mouse was moved over an element | |
2 | 3 | onmouseup | A mouse button was released | |
4 | 4 | onreset | The reset button was clicked | |
3 | 4 | # #onresize | The window or frame is resized | |
4 | 4 | onselect | Text is selected | |
2 | 3 | ##onsubmit | Submit button Clicked | 1 |
3 | ##onunload | User Exit Page | 1 | |
3 | [Recommended learning: | javascript advanced tutorial | ]
The above is the detailed content of What event attributes does javascript have?. For more information, please follow other related articles on the PHP Chinese website!