Is there something I can do like this (perhap via a plugin)
if ( ! $(\'form#contact input]\').hasFocus()) { $(\'form#contact input:first]\').focus(); }
Frustratingly difficult to find a solution to this problem considering the solution is actually very simple:
if (document.activeElement == this) { // has focus } if (document.activeElement != this) { // does not have focus }