Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the event driver of javascript?

Shulou Source: shulou.com Published: 2022-06-03 16:13:40 11月14日 Update

This article shows you what the event driver of javascript is. It is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

The event drivers of javascript are: 1, mouse click event "onclick"; 2, content change event "onchange"; 3, selected event "onselect"; 4, focus event "onFocus"; 5, loss of focus event "onBlur" and so on.

This article operating environment: windows7 system, javascript1.8.5 version, DELL G3 computer

What are the event drivers of javascript?

Event-driven in javaScript

The main events that event drivers in javascript trigger through mouse or hotkey actions are as follows:

1. Mouse click event onclick such as: ()

Usually used for

Text text input box-with onchange, you can achieve the effect of registration detection.

Textarea text field

3. Select the event onselect-- trigger the event when the contents of text or textarea are highlighted

4. Focus event onFocus-- occurs when an object gains focus

5. Lose focus event onBlur-corresponding to gain focus event!

6. The document loading event onload-triggers the event when the document is loaded. Also known as load event (load run) is commonly used to set up cookie

7. Unload the document event onunload-- corresponding to the load document event. Occurs when a web page exits, usually updating the value of cookie

8. Right mouse button menu function event oncontextmenu-can be used when masking the right mouse button

The above content is what is the event driver of javascript? have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Events drivers focus content mouse documents buttons objects skills effects knowledge concise concise functions actions that is controls text articles more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Apple Xiaomi Shulou Information