I have created a single HTML page that contains two divs. The div on the left (90% of page) is the target for ajax results. The div on the right (10% of page) contains a single
Use setInterval :
setInterval(function(){ var focusbox; focusbox = document.getElementById("part_to_search"); focusbox.focus(); });
Jsfiddle http://jsfiddle.net/g9YxB/10/