From: https://gist.github.com/pstoica/4323d3e6e37e8a23dd59 https://stackoverflow.com/questions/11592966/get-the-newly-focussed-element-if-any-from-the-onblur-event