/**/
<body onload="document.forms[0].reset();">
/**/

will do what you need.

-Rice

-----Original Message-----
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 1:21 PM
To: CF-Talk
Subject: Small JS Question


Ok, I have a form, I submit the form, the values are passed.  And then I do
some inserting into my DB.  Now, if a user clicks back, I want the form to
be reset.  I've tried appending myForm.reset(); to my validation scripts,
but when I submit it, no values are passed through, obviously because of the
form reset method i'm invoking at the end.  However when I do the form reset
method, when the user clicks back, the form is at the default state, so i'm
getting the results, but not the way i need them, i need them to work
together, anyone have any insight on this one? 

Thanks,

kev

~~~~~~~~~~~~~~~~~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to