|
-
Dec 1st, 2003, 07:58 AM
#1
Thread Starter
Hyperactive Member
onSubmit
When specifying the properties of a form what is the difference between:
Code:
<FORM action="rar.asp" onSubmit="function()">
<INPUT type="hidden" value="foo">
</FORM>
and
<FORM action="rar.asp" onSubmit="return function()">
<INPUT type="hidden" value="foo">
</FORM>
(onSubmit bit....)
Cheers!
-
Dec 1st, 2003, 09:38 AM
#2
Fanatic Member
if you return false within the function your form will not be submitted, so using return gives you the option not to send the form. exp if a field hasnt beenb filled
-
Dec 1st, 2003, 10:41 AM
#3
Thread Starter
Hyperactive Member
great thanks! very useful
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|