Home >Web Front-end >Front-end Q&A >What event attributes does javascript have?

What event attributes does javascript have?

青灯夜游
青灯夜游Original
2021-04-25 18:14:492818browse

Javascript event attributes include: onabort, onblur, onchange, onclick, ondblclick, onerror, onfocus, onkeydown, onload, onreset, onselect, onsubmit, etc.

What event attributes does javascript have?

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.

##onabortImage loading interrupted134onblurElement loses focus123onchangeUser changes the content of the domain123onclickMouse click on an object123ondblclickMouse Double click on an object144##onerror##onfocusElement gets focus123onkeydownA certain keyboard key was pressed143onkeypressA certain keyboard key is pressed or held down143onkeyupA certain keyboard key is released 143onloadA certain page or image has been loaded123onmousedownA mouse button was pressed144The mouse was moved##onmouseoutMouse the mouse away from an element144onmouseoverThe mouse was moved over an element123onmouseupA mouse button was released144onresetThe reset button was clicked13411##onsubmitSubmit button Clicked1232[Recommended learning: ]
Event Properties This event occurs when the following conditions occur FF N IE
When loading a document or image An error occurred 1 3 4
##onmousemove
1 6 3
# #onresize The window or frame is resized
4 4 onselect Text is selected
2 3
##onunload User Exit Page 1
3 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!

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