How to write onshow event using javascript/jquery?

后端 未结 4 958
温柔的废话
温柔的废话 2021-02-02 16:41

I have an anchor tag on my page, i want an event attached to it, which will fire when the display of this element change.

How can i write this event? and catch whenever

4条回答
  •  旧时难觅i
    2021-02-02 17:12

    You can't get an onshow event directly in JavaScript. Do remember that the following methods are non-standard.

    IN IE you can use

    onpropertychange event

    Fires after the property of an element changes

    and for Mozilla

    you can use

    watch

    Watches for a property to be assigned a value and runs a function when that occurs.

提交回复
热议问题