HTML input text question?

CWB rider

New member
So here is my question.
when dealing with HTML input text boxes, I want to change what is called when a user hits enter after typing in the text box. Right now as it is, it (I think) 'submits' but im not sure, but im using ajax on my page so all i want it to do is call a function i created without reloading the page. I've tried onSubmit = myFunction().

Any help or even info on what happens when a user hits 'enter' would be great. As of right now, I have it so that when a user hits tab it does what i want, but enter would be much better for everyone else using it.
( I also have a check enter function in javascript that checks each key, but when i have it check for enter, it reloads the page before it calls my function so nothing happens. thats when i just switched it to check for tab and it works fine with that because the page never reloads and my ajax works fine.)

Thank you,
Sean.
 
Back
Top