I'm writing an application in PHP and MySQL that uses frames. The top frame refreshes every few minutes to check whether or not a user should be still logged in.

My problem exists when a user is in the middle of entering data into a form and the top frame refreshes and the user hits the tab key. It then selects the address bar rather than the next control.

Does anyone have any clue how I can make it just continue on to the next control as if the top frame never refreshed?