开发者

Internet explorer 8 simulate event capturing

I want to implement the event capturing mo开发者_开发技巧del in IE8. In other words, I want the parent event handler to fire before all the child elements handlers. There are ways to workaround the effects of bubbling in my code, but in the end I create more problems for myself that way. And the visual effect of the event handlers firing sequence cannot be overcome. I am thinking about some kind of stack that keeps the event handlers and then executes them in reverse order. Any ideas, any kind of experience in that task?


Unfortunately IE doesn't support this, so your only option is to simulate it somehow. You could have a single DOM event handler on the outermost element and create your own system of event listener registration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜