joonstar
12-10-2006, 07:03 AM
<form action='action.htm'>
<input type='text'>
<input type='submit'>
</form>
With the code above, there are two ways to make it move to action.htm.
(1) The one is clicking the buttton "submit."
(2) The other is strikes the enter key after putting your mouse on the input text box.
I like to make it (1) work, but (2) not work.
If possible, I like to make it like the follow.
if a user strikes the enter key after putting his or her mouse on the text input box, it pops an alert saying "Please click the submit button instead of using enter key."
<input type='text'>
<input type='submit'>
</form>
With the code above, there are two ways to make it move to action.htm.
(1) The one is clicking the buttton "submit."
(2) The other is strikes the enter key after putting your mouse on the input text box.
I like to make it (1) work, but (2) not work.
If possible, I like to make it like the follow.
if a user strikes the enter key after putting his or her mouse on the text input box, it pops an alert saying "Please click the submit button instead of using enter key."