Thanks, however, this is not a form submit. When a user clicks the checkbox, then I would like a "Are you sure" confirm box to appear not when they already submit.
-----Original Message----- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 11:55 AM To: CF-Talk Subject: Re: SOT: Return Confirm onsubmit would go in your <form> tag. <form onsubmit="return confirm('Are You Sure?');"> On 3/10/06, Orlini, Robert <[EMAIL PROTECTED]> wrote: > I would like to include two onclick in the Input type below one is: > > <input type="checkbox" onclick="if ( this.checked > ){copyData()}else{document.forms[0].reset();}" name="Spare" value="Yes"> > > Can I add: onSubmit="return confirm('Are you sure?'); to the top Input type? > Do I put && between them? > > Thanks. > > Robert O. > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 3/9/2006 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235045 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

