Is it possible to find the element that currently has the focus in a cross-browser way?
In IE, it is possible to do $(x).blur(function(evt) { alert('Focus goes to ' + evt.toElement.id); });
and I need to do something similar in other browsers.
As an alternative, if its possible, I could do a setTimeout
and then investigate the currently focused element, but I don't know to do that either.