Say you have an HTML page of input elements with JavaScript connected to the input elements. You have the ability to press the TAB key, which by default browser behavior will highlight select the input element. Pressing TAB key again will then highlight select the next input element that is declared in the source code.
My question is, in JavaScript, how can I check if a specified input element is currently highlight selected?
I have tried researching this on my own prior to this post, but didn't find anything.