HTML/JavaScript Question

20_MuleTeam_Borax

Senior member
Oct 9, 1999
681
0
0
Is it possible to evoke a JavaScript function after a user hits 'enter' in a text field of a form? I do not want to have the form submitted when a user hits enter. I did not see any event handlers in my JavaScript book that would help in this situation, but I have faith in my fellow BBSers.

thx
 

Jazar

Senior member
Mar 27, 2000
262
0
0
IIRC, that would be action="javascript: myFunction()" within the form tag. could be mistaken but I think that's it.