Why does focus() not work the way it seems like it should?
<pre><code>&lt;DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en"&gt;
&lt;head&gt;
    &lt;script src="../js/third_party/jq142unmin.js"&gt;&lt;/script&gt;
    &lt;script&gt;
        $(document).ready( function(){
            $("#set_focus1").click(function(){
                console.log($("#input1").focus());
            });
            $("#set_focus2").click(function(){
                console.log($("#input2").focus());
            });
        });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;input id="input1"&gt;&lt;/input&gt;
    &lt;input id="input2"&gt;&lt;/input&gt;
    &lt;button id="set_focus1"&gt;Set Focus1&lt;/button&gt;
    &lt;button id="set_focus2"&gt;Set Focus2&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><img src="http://i.stack.imgur.com/PvU8F.png" alt="enter image description here"></p>

<p>The code itself works like I think it should, eg., clicking the buttons sets focus on one input or the other. But if I try the same thing from a console, it has no effect (no error messages, just doesn't do anything). I tried it a couple of different ways, as shown above.</p>

<p>Other jQuery functions executed from the console on these input elements, eg. $("#input1").val("foo"), works like I would expect. What's different about focus()?</p>
