views:

2225

answers:

1

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 the display of this element change?

+1  A: 

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.

rahul
What about WebKit?
chakrit