Just for the record, here's where you're coming from:
JavaScript onFocus and/or document.formname.boxname.focus() don't work the same in Netscape 3 and NS 4.
What works in one will send the other into an endless loop, and visa versa.
Don't even bother with IE 3--it has no idea what to do with this code.
Suppose you're asking your user to enter data into a couple text boxes, then when the user clicks in a third box, you want JavaScript to subtract these two numbers, and put the answer in the third box. It would be a good idea to check first to see if these really are numbers, and if not, bring up an Alert Window then focus on the problem text box.