Read all the replies. Here's what I think is better. Don't use a
submit button! Call an onclick event to a function and use location
method:
Function yada_yada(){
location= "resultDeldate.asp?VALUE1=" + value + "&" + "VALUE=" + Value2
etc.
I like this because it gives you control
-Jerry
-----Original Message-----
From: True2ViSioN@a... [mailto:True2ViSioN@a...]
Sent: Saturday, May 18, 2002 4:56 PM
To: javascript
Subject: [javascript] Form need some idea
Hi all, what I am trying to do is I want to make it so that the "enter"
key
can't submit the form by hitting it here are few ways I have come up
with
1.
if (event.KeyCode == 13) {return;}
2.
<script FOR="idFormButton" EVENT="onkeypress"> if (event.KeyCode == 13)
{return;}</script>
<BODY ID="idFormButton">
3.
add the event.KeyCode into a function and do onLoad in the document
<BODY LANGUAGE=javascript onLoad="window_onload()">
am I going about this in the right way?
and do you have and suggestions or ideas let me know
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20