[Koha] Input box focus
Tonnesen Steve
tonnesen at cmsd.bc.ca
Fri Feb 2 05:36:38 NZDT 2001
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()>
More information about the Koha
mailing list