Multiple frame controls in a link

Joined
Jul 25, 2004
Messages
389
Reaction score
5
Points
18
Location
Gaithersburg, MD
Your Mac's Specs
Mac Pro 2.6ghz Quad Xeon, 23" Cinema
It's been a while since I've been caught up with the latest html and javascript tricks. I'm designing a site, and I want to be able to modify the page being displayed in two different frames at the same time. i.e

help.gif


user clicks on a link in frame 3, I want a page to open in frame 3, and frame 2's page to change. Once the person navigates away from the destination of frame 3, frame 2 goes back to its original source. Get it? If you can either give me a site with the info to do it or if yuo know how to do it yourself that would be great. Thanks in advance.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,625
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
Are you going to share the answerm so if soneone else has the same question,
 
OP
G
Joined
Jul 25, 2004
Messages
389
Reaction score
5
Points
18
Location
Gaithersburg, MD
Your Mac's Specs
Mac Pro 2.6ghz Quad Xeon, 23" Cinema
<a href="blah.htm" onClick="parent.frame2.src='blah2.htm'">link here</a>
 
P

pitythefool

Guest
gort said:
Once the person navigates away from the destination of frame 3, frame 2 goes back to its original source.

To be extra fancy, and to revert to the original page in frame two, irrespective of the destination of frame three, you could add an 'onUnload' declaration to the body I think....

Code:
<body onUnload="parent.frame2.src='page.html';" >
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top