[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 03:54 PM 12/10/2002 -0800, Chery Miller wrote:
>I would like for the cursor to appear in the search box whenever a user 
>opens a screen to start a search. As it is now set, the user has to click 
>into the search box and then type the query - does anyone know of a way to 
>change this?

Assuming you're talking about the search box on a srchhelp_ page and not 
the search widgit on results/record screens, you can place the following in 
the opening body tag:

onLoad="document.forms[0].SEARCH.focus(); document.forms[0].SEARCH.select();"

Your tag might look something like this:
<body onLoad="document.forms[0].SEARCH.focus(); 
document.forms[0].SEARCH.select();">

(I think this appears in the system default srchhelp_ pages.)

Bob Duncan


~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
David Bishop Skillman Library
Lafayette College
Easton, PA  18042
duncanr@xxxxxxxxxx
http://www.library.lafayette.edu/