works, but only in IE
Philip Arnold - ASP wrote:
>
> > I want to send the user back two screens after the alert. The following
> > notation does not seem to work, it just keeps them at the same screen.
> > FYI, the CFOUTPUT tags are valid.
> >
> > <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> > <!--
> > <cfoutput>
> > alert("Work order #form.id# has been re-assigned to
> > #Trim(form.assigned)#.")
> > location.href='javascript:window.history.back(-2)'
> > </cfoutput>
> > //-->
> > </SCRIPT>
>
> OK, why are you putting the JavaScript function in apostrophies?
> Try;
> location.href=window.history.back(-2);
>
> Not tested, but it should work
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists