Event-driven events in javascript are triggered by mouse or hot key actions as follows:
1. Click the event onclick as follows: (<input type = "button" value = "click" onclick = "execute statement. Process"/>)
It is usually used for the following controls:
Button Object
Checkbox check box or check list-with onclick click event, it is usually used to select all results
Radio button
Reset button
Submit button
2. content change event onchange: (<input type = "text" onchange = "triggered content"/>)
Usually used
Text input box-with onchange, registration detection can be achieved
Textarea text field
3. Select event onselect -- this event is triggered when the content of text or textarea is highlighted.
4. Get focus event onFocus -- occurs when the object gets focus
5. The onBlur event that loses focus -- corresponds to the event that gets focus!
6. document loading event onload -- when a document is loaded, it is a trigger event. Usually called loading events (loading and running), it is generally used to set cookies.
7. Uninstall document event onunload -- corresponds to document event loading. When the web page exits, the cookie value is usually updated.
8. Right-click menu function event oncontextmenu -- can be used to shield the right mouse