1 Feb
2001
1 Feb
'01
5:36 p.m.
Chris: Are the input boxes automatically getting the focus when a page loads? I added a little chunk of javascript to my circ-top.inc to give the focus to the first input box on a page to make barcode scanner entry easier. The focusinput() function should probably check to make sure that document.forms[0].elements[0] exists first to avoid any possible errors... function focusinput() { document.forms[0].elements[0].select(); document.forms[0].elements[0].focus(); document.forms[0].elements[0].focus(); } . . . . . <body text="black" bgcolor="white" link="#0000ff" vlink="#0000ff" "3366cc" Alink="#cc3300" marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad=focusinput()>