Solved

history.go(-1) for another frame

Posted on 2001-08-31
7
231 Views
Last Modified: 2010-05-19
I have 2 frame. Frame A is for navigation button including back button that works exactly like the browser.
and Frame B is the content of the website.

Question:
How to create a back button that can go to the previous page of the frame B?

TIA
0
Comment
Question by:hdrik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 19

Accepted Solution

by:
DreamMaster earned 100 total points
ID: 6443920
<a href="javascript:parent.frameB.history.go(-1)">Go back on Frame B</a>

Max.
0
 

Author Comment

by:hdrik
ID: 6444047
Max, it didn't work.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6444058
Hmm...can you show me the source of your frameset?

It should work...so I want to check...

Max.
0
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!

 

Author Comment

by:hdrik
ID: 6444082
----- MAIN.HTML ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
</HEAD>

<FRAMESET cols="100%" rows="10%,*">
  <FRAME marginHeight=1 name=frameA Resize src="navigate.html">
  <FRAME marginHeight=1 name=frameB Resize src="http://myserver/default.asp">
  <NOFRAMES>You must use a browser that can display frames to see this page. </NOFRAMES>
</FRAMESET>
</HTML>

----- NAVIGATE.HTML ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Feedback System</TITLE></HEAD>
<BODY>
<A href="Javascript:parent.frames('frameB').history.go(-1)">BACK</A>

</BODY>
</HTML>

0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6444100
It will work if you load a new page into it first...if you are opening the frameset and try to go back immediately...there's nothing in the history of the frame...as soon as there is...it will be no problem....just tried it out myself..and it works...

Max.
0
 

Author Comment

by:hdrik
ID: 6444105
sorry my mistakes.. it works.. Thanks Max..
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6444112
Anytime hdrik... :)

Thanks for the grade A... :)

Max.
0

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Google Tag Manager - Add Trigger Using Div class 22 100
Html split(text) Part2 6 41
form isn't working is it missing a document 21 64
Can't Find the Homepage on my site 4 47
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

752 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