Is there a way with javascript to see if a form input has focus? I know I can use onblur and onfocus events and keep track of it with a variable, but those are not as reliable.