[thelist] Javacript onSubmit help
Feingold Josh S
Josh.S.Feingold at irs.gov
Thu Feb 21 11:23:01 CST 2002
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
I am trying to get a simple script to work, but I seem to be doing something
wrong. A few weeks back I posed the question of how to ensure that a
browers only submit when the user hits the submit button.
Here is my version on someone's suggested solution:
<head>
<script language=Javascript>
var enter = false
</script>
</head>
<body>
<form ... onSubmit="return enter;">
<input type="submit" onClick="enter=true">
</form>
<body>
However, the script does not seem to be working. Any suggestions?
On a side note, the reason I chose this script is because I think it should
degrade well. However, this assumption is based on the fact that both
onSubmit and onChange both work or don't work in a browser. Is there any
reason to believe otherwise?
Thanks,
Josh
More information about the thelist
mailing list