Javascript Focus() function not working
<p>I have a textbox which I want to set the focus on, but it doesn't work.</p>

<pre><code>document.getElementById("txtCity").focus();
</code></pre>

<p>Any idea?</p>
