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

js onpropertychange input box event acquisition attribute_form effects

WBOY
Release: 2016-05-16 18:54:51
Original
1318 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template