I can't think why this should be expected behaviour. Almost as if the keyup event from pressing the enter button on the index page is being seen by page two when the focus() call is made?! Open the ...