history.back(2); will do it.


>From: Ryan <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re: Jacascript
>Date: Thu, 04 Jan 2001 08:17:07 -0600
>
>Why even set the location property? Can't you just say
>window.history.back(-2);
>right after the alert?
>
>Oh, another problem might be the -2. I think it would be back(2),
>or go(-2). If you are using the back() function it does not need
>to be negative.
>
>RPS
>
>At 08:59 1/4/01 -0500, you wrote:
> >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>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to