Click to See Complete Forum and Search --> : submit????
Justin
06-03-2003, 01:13 PM
I am takeing info in on a form, i noticed that if they press enter on the form it "trys" to submit and reloads the page. I don't use the submit at all. i am useing javascript to do stuff with the info entered
is there a way to stop this or disable the enter key?
thanks
Khalid Ali
06-03-2003, 01:15 PM
Search the forum...this topic has been answered for several times....
<!--Note: No offense to Khalid, his suggestion is probably better than mine, because I don't know exactly what Justin wants. -->
<form onsubmit="return false;">
Jona
Justin
06-03-2003, 01:52 PM
that works
Charles
06-03-2003, 01:52 PM
The far better solution is to use the FORM element the way God and the W3C intended and supply a value for the "action" attribute. Currently your form will not submit at all for the 13% of users who do not use JavaScript.
Heh, Charles, I don't know that he's too crazy about making it work for those 13%.. Even though he should. He looks like he's just learning and experimenting with it...
But, Justin, when making real Web sites to be published on the World Wide Web, make sure that they work for the users with JavaScript disabled.
[J]{o}[n]{a}
Charles
06-03-2003, 02:06 PM
Originally posted by Jona
He looks like he's just learning and experimenting with it... I guessed otherwise. Sometimes it is hard to tell.
Justin
06-03-2003, 03:17 PM
i plan for this one to only work on javascript computers, it is not for the internet, but i do know to make shure for it to work on nonjavascript brousers