Auto-select form box
Peter Ivanick
pei2 at Lehigh.EDU
Mon Jan 12 09:51:35 EST 1998
Hi John -
> Is there a method to have the cursor automatically appear in a form box when a page is loaded?
> I would like to modify the search pages on our catalog (DRA Web) to minimize user 'mousing'.
With Javascript, yes. Here's the relevant portion from our Sirsi system:
<SCRIPT LANGUAGE="JavaScript">
document.searchform.searchdata1.focus();
document.searchform.searchdata1.select();
</SCRIPT>
where searchdata1 is the entry box we wish the cursor to appear in.
--
Peter Ivanick Sr. Systems Specialist
Lehigh University Information Resources
30 Library Dr. 401 Linderman Library
Bethlehem, PA 18015 Voice:610.758.4998 Fax:610.758.5605
Average change in the federal taxes an American earning:
less than $22,600 will pay under the new tax law : +$19
more than $246,000 will pay : -$16,157
(Harper's Index, 10/97)
More information about the Web4lib
mailing list