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