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
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.