With Firefox, I can do:
"focus", gotEvent, false)
Then any focus event on any element on the page will eventually bubble up and my listener 'gotEvent' will be called.
I could register the same listener in IE with:
However this listener it never called. My understanding is that it is never called because the focus event does not bubble on IE (see reference to MSDN documentation below). But then, is there a way to catch all the focus events on any elements on my page by registering just one listener in IE?
The profound reason why I want to do this is that I have pretty large pages. So large, that it takes too much time to register my event on all the elements when the page loads. Hence the idea of registering the event handler only once, and figuring out in the event handler code what the target of the event was.
Any suggestion is welcome.