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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to control submitting which submit button when pressing "enter"

Status
Not open for further replies.

H2

Programmer
May 17, 2001
24
0
0
HK
Can I control which submit button will be activated when I pressing the 'enter'?

thanks
 
you can use some vraitions in the onKeyPress event. here's a bit of a explanation on this event and there is also the onKeyDown. try a google search for examples. I believe there should be plenty out there

try to write something up as a example also _______________________________________________
[sub]{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }[/sub]
_______________________________________________
for the best results to your questions: FAQ333-2924
has you're questio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top