Internet Explorer has a handy 'activeElement' property on the
document object which keeps track of the current element that has
focus. Firefox 3 is going to support the same property inline with the
HTML 5 specification but that's a fair way off so here's a work around:
[co...
[More]