WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 why only one input box in form press enter key auto subit?, cooltiger, August 27, 2003
     Re:why only one input box in form press enter key auto subit?, Erik Arvidsson, August 27, 2003

Subject: Re:why only one input box in form press enter key auto subit? From: Erik Arvidsson Date: August 27, 2003
You can prevent the defaul submit action for the form in case of a enter key being pressed.

form.onsubmit = function (e) {
if (...)
return false;
};

erik

_________________________________________________

a form have only one input box press enter key can auto submit
how can i remove this default event?
because i want to attch key press event to input box i don't want
input box submit.
who can help me?
thanks!



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX