Subj : Controlling tab order with JavaScript To : netscape.public.mozilla.jseng,comp.lang.javascript From : Mark Reginald James Date : Sat Sep 24 2005 07:28 pm Hi, I'm trying to use a keyboard event function to change what element gets the focus after tab is pressed in a particular element. Simple HTML that demonstrates the problem is below. When tab is pressed in the second input box I want focus to move to the first. It does this in IE, but not Mozilla 1.7.10. I can make it work in Mozilla by changing the event from onkeydown to onkeypress, but then it doesn't work in IE. Is there any way to make this work generally without having to make the inline event type dependent on the browser type? Thanks.