?
Solved

firefox problem in back button effect in iframe window

Posted on 2006-06-05
2
Medium Priority
?
623 Views
Last Modified: 2010-08-05
I have a container window that contains an iframe with id "if1". In the container page I have a back button that should work on the iframe window; I am using the following code:
<a href='javascript:window.frames["if1"].history.go(-1);'><img src="images/back.gif" alt="Back" width="50" height="25" border="0"/></a>
it is working fine with IE ... but it does not work with firefox!
0
Comment
Question by:HamidHossain
2 Comments
 
LVL 10

Expert Comment

by:ClickCentric
ID: 16837830
You say you gave the iframe the id "if1", but I think for that method to work in firefox, the name also has to be "if1".
0
 
LVL 23

Accepted Solution

by:
basicinstinct earned 2000 total points
ID: 16837938
That's correct ClickCentric - the name must be set too.

Also, if you have no luck there, try the 'back' method instead:

<a href='javascript: window.frames["if1"].history.back();'>Back</a>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question