Home  >  Article  >  Web Front-end  >  js onpropertychange input box event acquisition attribute_form effects

js onpropertychange input box event acquisition attribute_form effects

WBOY
WBOYOriginal
2016-05-16 18:54:511317browse

When the properties of an HTML element change, they can be captured through onpropertychange. For example, when the value attribute of the object is modified by the script of the page, onchange cannot capture it, but onpropertychange can.

The specific understanding is: onpropertychange can capture changes in property values ​​in time, and onchange can only activate the event by performing certain operations with the mouse when the property value changes!

But onpropertychange is only supported by IE. How to solve it under FireFox? Firefox's event oninput has the same effect as IE's onproperchange.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn