This has been asked here before, but several years ago, and there was no cross-platform solution at the time (other than the setTimeout
solution, which is really not very handy).
I'd like to do onblur="foo(parm);"
and have foo
be able to determine which element now has focus.
I'm using regular javascript; no jQuery for this one, please.
Is that possible these days?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…