473,608 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link not opening in frames on using Back button

3 New Member
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 1928
Jacotheron
44 New Member
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 Recognized Expert Moderator MVP
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 Recognized Expert Moderator MVP
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
swapcool
3 New Member
_______________ _______________ ______
____________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.bac k(); 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 Recognized Expert Moderator MVP
Why do you have so many nested framesets?
Feb 5 '08 #6
swapcool
3 New Member
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 Recognized Expert Moderator MVP
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
4847
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 (I am not caching pages) and a user clicks refresh from the menu bar the user is taken back to the home page! The home page is a frame with a top frame that is repeated on each subsequent asp pages
3
2716
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 of two frames. I have a <a href="....."> link on the second frame of that window. What I want is that when user clicks on the link in the new window's second frame,
7
1972
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 out. What needs to happen is this: On the left frame you should have a series of buttons, which when pushed makes things happen on the right frame.
14
2138
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 Frame (File LeftEx8_2.html) a series of buttons, which when clicked prompt the user to enter information for background color, text color, link color, title and some text.
1
2083
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 loaded the first time. The link works perfectly in NN4.5 and 7.1, but IE6 and Opera7 are causing headaches. I've tried to do the link with the following script:
36
3949
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 you're still in the same browser, but the Back Button no longer works. I've done some experimentation and came up with the conclusion that Microsoft's IE browser has a relatively small likelihood of that happening, but that Netscape's browsers...
2
1352
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 frames so I changed this to a single page with both the entry form and the display rows on it which posts back to itself(an improvement i hope?) ok my single page also needs to have the ability to search for stuff as you enter data. I know I can...
4
4823
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 value of the "id" field of that record as a URL parameter. Can someone tell me how to do this.
7
3957
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 by some limitation issues of SharePoint. To help:
0
8475
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8148
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8338
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3962
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1594
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1329
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.