I have a USB peripheral device (barcode scanner) which simple adds the barcode to a form input textbox. This textbox is the only control on the page and when the barcode has been entered the page must submit. I have tried using onChange() to call my javascript function AutoSubmit() but onChange() needs focus to be moved off the textbox before it kicks in so no good. I have also tried onkeypress() which works but if the barcode is 123 it will kick off at 1 rather than wait for the full barcode. Any ideas?