Leapfrogging backwards works in Firefox but not in IE

N

Norman Swartz

The script works in Firefox but not in IE.

Here's what I want to do:

file1.htm loads file2.htm
file2.htm loads file3.htm
The "Back" button in file3.htm returns the user to file1.htm

Here is how I coded the script which is placed into file2.htm:

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function leapfrog()
{
kludge = window.location.replace("./file3.htm")
}
</SCRIPT>
:
:
<a href="javascript:leapfrog()">
<b><font size="+1">Continue</font></b></a>

In Firefox, this coding works exactly as I want. But in IE, when one
clicks on the "Back" tab in file3.htm, one is returned to file2.htm
instead of file1.htm. What changes are needed so that the code works as
I want in both IE and Firefox? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top