title: How to detect focus on link elements and form input fields when activated with Tab key?
body: <p>I want to detect when user focuses a link or input field by pressing the Tab key. Does anyone know of a way to do this? I have tried using the onFocus event, but it does not seem to work.</p>
  <p>(I am not using jQuery, and I want to detect focus on links as well, so the similar question 16144611 is not the same as this one.)</p>