jQuery window bind focus
<p>I have this:</p>

<pre><code>$(window).bind("focus", function() {
    $('input[name=myName]').focus();
});
</code></pre>

<p>But it was causing "too much recursion".  So I changed it to this:</p>

<pre><code>$(window).one("focus", function() {
    $('input[name=myName]').focus();
});
</code></pre>

<p>But that of course only works the first time the window gets the focus.</p>

<p>Q: How do I write it so that every time the user toggles to another screen and back to this one, then <em>myName</em> has the focus?</p>
