Are you using a handheld scanner and scanning the barcode on screen and wanting the focus to be in the next field after scanning the barcode?
Otherwise, I am not sure what you are asking. The scanner itself won't do this for you if you actively filling out a form. The field which receives the scanned data could have an exit event which has a setFocus method taking you to the field it specifies. (haven't tested this in a long time, so my presumption is once the data is received it will exit, but focus could remain. In that case, another event would be needed. However, A manual <TAB> will force an exit of the field, and the setFocus() function will excute taking you to the field specified in the method.