473,396 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Link not opening in frames on using Back button

Hi,

I am a page having a menu and a few frames life below.
The links in menu open in F3 frame. I also have back/forward buttons in F1 frame.
________________________
____________F1_________|
| F2 |................................ |
| .... |................................ |
| M | .............F3...............|
| E | ...............................|
| N |............................... |
| U |............................... |
_______________________

The menu links open correctly in the F3 frame as expected. The back button works correctly BUT once the BACK button is used, all the link in the menu start opening in new window. They won't open in the frame F3.

Menu is a Dhtml menu (tagert=F3)
Back button is a History.back( ) function.

Does anyone have any clue what could be wrong?

Thank you,
Swap
Feb 1 '08 #1
7 1913
Hi,

I am a page having a menu and a few frames life below.
The links in menu open in F3 frame. I also have back/forward buttons in F1 frame.
________________________
____________F1_________|
| F2 |................................ |
| .... |................................ |
| M | .............F3...............|
| E | ...............................|
| N |............................... |
| U |............................... |
_______________________

The menu links open correctly in the F3 frame as expected. The back button works correctly BUT once the BACK button is used, all the link in the menu start opening in new window. They won't open in the frame F3.

Menu is a Dhtml menu (tagert=F3)
Back button is a History.back( ) function.

Does anyone have any clue what could be wrong?

Thank you,
Swap
The main problem is that a frameset page is open. All pages viewed through the frameset is recorded by the history as a single page. If you use the history.back() function, the browser will try to display the page viewed before the frameset.

My advice will be to use a static link. You might not be able to go to the page previously viewed if more than one page have a link to the page viewed.

Glad to be able to help
Feb 2 '08 #2
acoder
16,027 Expert Mod 8TB
The main problem is that a frameset page is open. All pages viewed through the frameset is recorded by the history as a single page. If you use the history.back() function, the browser will try to display the page viewed before the frameset.
That's not quite true. Try it.
Feb 4 '08 #3
acoder
16,027 Expert Mod 8TB
Does anyone have any clue what could be wrong?
It could be possible that F3 is not defined anymore so it spawns a new window.
Feb 4 '08 #4
____________________________________
____________F1_____|Back | Forward____|
| F2 |................................................. ............... |
| .... |................................................. .................|
| M | .............F3................................... .............|
| E | .................................................. ...............|
| N |................................................. ................ |
| U |................................................. ................. |
|___|_________________________________|

Below are more details about the page....

Back and Froward are 2 buttons in an html page appearing in frame F1 (F1.htm).
<input type="button" onClick="parent.F3.history.back(); value="Back">

F3 is the frame targetted in the links in the Menu.

Below is the main page ________________________________

[HTML]<frameset id="TopFrame" rows=67,* >
<frame src="F1.htm" name="top" scrolling=no>
<frameset id="LowerFrame" cols=250,* >
<frame src="Menu.htm" name="F2" >
<frameset id="RightFrame" cols=20,*,20>
<frame name="L1" src="L1.htm" scrolling=no>
<frameset id="Center" rows=16,*,20>
<frame name="C1" src="Top1.htm" scrolling=no>
<frame name="F3" id="F3" src="Main.mht">
<frame name="C2" src="Bottom.htm" scrolling=no>
</frameset>
<frame name="R13" src="R1.htm" scrolling=no>
</frameset>
</frameset>
</frameset>
</html>
[/HTML]__________________________________________________ ______________
Feb 5 '08 #5
acoder
16,027 Expert Mod 8TB
Why do you have so many nested framesets?
Feb 5 '08 #6
I am not very good at html. What I am trying to do is make the page look good for various resolutions. Most of the frames just display images.
Feb 5 '08 #7
acoder
16,027 Expert Mod 8TB
You shouldn't need to nest framesets just for layout, but anyway, here's a link that should prove useful.
Feb 5 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jawahar Rajan | last post by:
All, I have an ASP site that uses frames two frames. (yes I should be using include files, but we started ou using frames so we have been stuck with frames.) When I get a page expired warning...
3
by: Farooq Karim | last post by:
Greetings; I am unable to solve this problem; I hope someone will come up to show his brilliance. From my web page I open another link in another browser window. That new window is composed...
7
by: Trvl Orm | last post by:
I am working with 2 frames, Left and Right and the main code is in the left frame, which has been attached. Can someone please help me with this code. I am new to JavaScript and can't figure it...
14
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
1
by: Aki | last post by:
Hi! I've been trying to create a home link in a document that is shown in a frameset of two frames. My aim is to show the first documents that were shown in the frames when the frameset was...
36
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
2
by: Wee Bubba | last post by:
i started by designing my web page using frames. i had my data entry form in an upper form and my data rows displaying in a lower frame. i soon discovered that ASP.NET is not really meant for...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
7
by: SHC | last post by:
I'm in need of some javascript to load two pages into two seperate iframes which are on two seperate and different pages. Rather complicated I know (and easier done in one frameset), but caused...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.