1. The difference between onchange event and onpropertychange event:
The onchange event is triggered when the content changes (the content may be equal twice) and the focus is lost; the onpropertychange event is triggered in real time, and every character added or deleted will be triggered. The event will also be triggered through js changes, but the event is proprietary to IE.
2. The difference between oninput event and onpropertychange event:
The oninput event is an event supported by most browsers outside of IE. It is triggered in real time when the value changes, but it will not trigger when the value is changed through js. The onpropertychange event is triggered by any property change, while oninput is only triggered when the value changes. Oninput must be registered through addEventListener(). The onpropertychange registration method is the same as that of general events.
3. Oninput and onpropertychange fail:
oninput event:
(1) When the value is changed in the script, it will not be triggered;
(2) It will not trigger when selecting from the browser's automatic drop-down prompt;
onpropertychange event:
When input is set to disable=true, it will not be triggered.