JavaScript common events and event handles-power node

1. The click event

Mouse click event, event handler: onclick

2. dblclick event

Mouse double click event, event handle: ondblclick

3. Blur event

Loss of focus event, event handle: onblur

4. The change event

This event occurs when the text content in the text box, text field, or the selected item in the drop-down list changes, event handler: onchange

5. Focus event

Get focus event, event handle: onfocus

6, load event

Occurs after the web page is loaded, the event handler: onload, usually written in the body tag.

7, keydown event

Occurs when a keyboard key is pressed, and all keys can be captured except for the "prt sc sysrq" key. Event handle: onkeydown

8, keypress event

Occurs when the keyboard key is pressed. It is mainly used to capture numbers, letters, and small keyboards. Other keys cannot be captured, but all keys can be captured in the FF browser. Event handler: onkeypress

9, keyup event

Occurs when the keyboard key bounces up, event handle: onkeyup

10. Mousedown event

Mouse down event, event handler: onmousedown

11. Mousemove event

Occurs when the mouse moves on a control, event handle: onmousemove

12. Mouseover event

Occurs when the mouse passes over a control, event handler: onmouseover

13, mouseout event

Occurs when the mouse leaves a control, event handler: onmouseout

14, mouseup event

Occurs when the mouse button is released, event handler: onmouseup

15, reset event

Occurs when the form data is reset, event handler: onreset

16, submit event

Occurs when the form data is submitted, event handler: onsubmit

17, select event

Occurs when the content in the text box or text field is selected, event handler: onselect

18. The abort event

Occurs when the loading of the image is interrupted, event handler: onabort

19, error event

Occurs when an error occurs when loading an image or document, event handler: onerror

20, resize event

Occurs when the window or frame is resized, event handler: onresize

21, unload event

Occurs when the user exits the current page, event handler: onunload

Guess you like

Origin blog.csdn.net/weixin_49543720/article/details/112619340