Troy, It works for me. I've tested Mac-PC, Mozilla, IE5 and NS6. If the onLoad function isn't being called, just drop it on the page without a function.
<script language="javascript"> document.yourFormName.reset(); </script> Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -----Original Message----- From: Troy Montour [mailto:vamp@;vampiresinc.com] Sent: Wednesday, November 13, 2002 10:23 PM To: CF-Talk Subject: Re: Need to reset the page if someone clicks back Adrocknaphobia, actually the thing with this is it doesn't reset the page when you click back because the page doesn't reload to trigger the JavaScript. I haven't tried the others yet will in the morning Thanks Troy ----- Original Message ----- From: "Adrocknaphobia Jones" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 4:40 PM Subject: RE: Need to reset the page if someone clicks back > Guys, I really think you are over complicating this solution. You only > need only need one line of javascript. > > <body onLoad="document.yourFormName.reset();"> > > simple. > > Adam Wayne Lehman > Web Systems Developer > Johns Hopkins Bloomberg School of Public Health > Distance Education Division > > > -----Original Message----- > From: Bob Haroche [mailto:spambait@;onpointsolutions.com] > Sent: Wednesday, November 13, 2002 5:04 PM > To: CF-Talk > Subject: Re: Need to reset the page if someone clicks back > > Try this. I just include this code via CFINCLUDE. It works in IE, > which is stubborn when it comes to obeying no cache commands. > > ------- > > <!--- Client side cache prevention ---> > <meta http-equiv="Expires" content="0"> > > <!--- Setup our expire times for Netscape and Internet Explorer ---> > <cfoutput> > <!--- Internet Explorer Date Format: (eg, Fri, 30 Oct 1998 > 14:19:41 GMT) ---> > <cfset > MSIEtimestamp='#dateformat(now(),"DDD")#,#dateformat(now(),"DD")# > #dateformat(now(),"Mmm")# #timeformat(now(),"HH:MM:SS")#'> > > <!--- Netscape Date Formate: Netscape (eg, Wednesday, Apr 26 > 2000 17:45:25 PM) ---> > <cfset > NETSCAPEtimestamp='#dateformat(now(),"DDDD")#,#dateformat(now(),"MMM") > # > #dateformat(now(),"dd")# #dateformat(now(),"YYY")# > #timeformat(now(),"HH:MM:SS tt")#'> > </cfoutput> > > <!--- Tell HTTP Header to force expire of page - nocache ---> > <cfif HTTP_USER_AGENT contains "MSIE"> > <cfheader name="Expires" > value="<cfoutput>#MSIEtimestamp#</cfoutput>"> > <cfheader name="Pragma" value="no-cache"> > <cfheader name="cache-control" value="no-cache, no-store, > must-revalidate"> > <cfelse> > <cfheader name="Expires" > value="<cfoutput>#NETSCAPEtimestamp#</cfoutput>"> > <cfheader name="Pragma" value="no-cache"> > <cfheader name="cache-control" value="no-cache, no-store, > must-revalidate"> > </cfif> > > ------------- > Regards, > Bob Haroche > O n P o i n t S o l u t i o n s > www.OnPointSolutions.com > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.