Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search engine will not handle enter on keyboard without focus in box.

Status
Not open for further replies.

findmojo

Vendor
Nov 4, 1999
1
US
I need help in setting up the search engine (javascript) at<br>
<A HREF=" TARGET="_new"> to allow the user to press enter on the keyboard to start the search. If the focus is in the search box then the enter key will work. The two radio buttons are the problem. When a radio button is selected it takes the focus out of the search box and that causes the enter key to not work right.<br>
Please help! Thank you.<br>
<br>
Frederic Johnson
 
could try giving the radio buttons the following argument in their HTML tags:<br>
<b>onSubmit=&quot;window.forms[0].submit()&quot;</b><br>
<br>
I'm not <i>completely</i> sure how well this'll work; but's its a pretty good attempt @ least (can't do any harm) <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= > </a><br>*nix installation & program collector/reseller. Contact me if you think you've got one that I don't :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top