Hello
I have a piece of simple code which take the user inputs and depending
which check box is selected directs them to a different page.
<form name="allform">
<input type="radio" name="allsearch " value="Weaksear ch">
<font face="Arial,Hel vetica" >Weak </font><br>
<input type="radio" name="allsearch " value="Pinserse arch">
<font face="Arial,Hel vetica" >Pinser </font><br>
<input type="radio" name="allsearch " value="Brutesea rch">
<font face="Arial,Hel vetica">Brute note </font> <br>
<input type="radio" name="allsearch " checked
value="gogsearc h">
<font face="Arial,Hel vetica">Google</font> <br>
<input type=text name=allsearcht ext size=10 maxlength=255>
<input type="button" onClick="locate all(this)" value="Go"
name="button">
</form>
This works but the user needs to hit the go button, if they just hit
return the text field is emptied, I would like if the user hits ENTER,
the search begins.
I believe I can add something similar as
if (window.event.k eyCode == 13)
But I am not sure how to incorporate it in the form?
--
I have a piece of simple code which take the user inputs and depending
which check box is selected directs them to a different page.
<form name="allform">
<input type="radio" name="allsearch " value="Weaksear ch">
<font face="Arial,Hel vetica" >Weak </font><br>
<input type="radio" name="allsearch " value="Pinserse arch">
<font face="Arial,Hel vetica" >Pinser </font><br>
<input type="radio" name="allsearch " value="Brutesea rch">
<font face="Arial,Hel vetica">Brute note </font> <br>
<input type="radio" name="allsearch " checked
value="gogsearc h">
<font face="Arial,Hel vetica">Google</font> <br>
<input type=text name=allsearcht ext size=10 maxlength=255>
<input type="button" onClick="locate all(this)" value="Go"
name="button">
</form>
This works but the user needs to hit the go button, if they just hit
return the text field is emptied, I would like if the user hits ENTER,
the search begins.
I believe I can add something similar as
if (window.event.k eyCode == 13)
But I am not sure how to incorporate it in the form?
--
Comment