The trigger event of the input TAG content change. The input tag trigger event
--- Restore content start ---
1. Differences between onchange events and onpropertychange events:
The onchange event is triggered when the content changes (two times the content may be equal) and the focus is lost. The onpropertychange event is triggered in real time, and is triggered every time one character is added or deleted, js changes will also trigger this event, but this event is private to IE.
2. Differences between oninput events and onpropertychange events:
Oninput events are events supported by most browsers other than IE. They are triggered in real time when the value is changed, but are not triggered when the value is changed through js. onpropertychange events are triggered when any attribute changes are made, oninput is triggered only when the value is changed. oninput must be registered through addEventListener (). The onpropertychange registration method is the same as the general event.
3. Failure of oninput and onpropertychange:
Oninput event:
(1) It is not triggered when the value is changed in the script;
(2) It will not be triggered when selecting from the browser's automatic drop-down prompt;
Onpropertychange event:
It is not triggered when the input value is set to disable = true.
--- Restore content end ---