How to set focus() to an input text box that is NOT inside a form
<p>I thought this would work:</p>

<pre><code>...
&lt;input type="text" id="myText" /&gt;
...
&lt;script type="text/javascript" language="JavaScript"&gt;
    document.getElementById["myText"].focus();
&lt;/script&gt;
</code></pre>
