onpropertychange for a textbox in Firefox?

后端 未结 4 1351
借酒劲吻你
借酒劲吻你 2021-01-03 09:47

How to handle the onpropertychange for a textbox in Firefox using JavaScript?

Below is an example:

var headerBGColorTextBox = document.g         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-03 10:47

    There are two ways to mimic the onpropertychange event, Mutation events as mentioned above that should work equally across modern browsers and the "object.watch" non-standard method that will provide support for old versions of FF < 3.

    See documentation on MDC.

    Object.watch

    Mutation events

提交回复
热议问题