javascript focus to an element
<p>I have a page that scrolls across multiple screens using jQuery's animate function.  I am using tab indeces set by jQuery for the form.  The problem is that when I give focus to the first element of the form using</p>

<pre><code>$('#myforminput1').focus(); 
</code></pre>

<p>the page automatically scrolls to the element that has focus, even though it is on the third screen.  I don't want the #myforminput1 to have focus until after it scrolls to page three.  What happens when I add it to the code is that the page jumps to the focused element, and then animates to move the amount to page 3 so it overshoots the form. It might work if I could set the focus after the animation stops.  </p>

<p>There is a similar problem with IE7 in that when a select box is selected using tabs, the page scrolls so that the select box is on the left part of a page.  It seems like this problem might be related.</p>
