Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question About Frame

Status
Not open for further replies.

paradis222

Programmer
Oct 20, 2002
12
0
0
HK
Hi all,

I have some question related to frame loading.
I have two page. PageA (which is a simple html page having some linking) and PageB (which is a page with iframe named "newsframe"). How can i do the following action?
when i click on the link on PageA, then PageB is loaded in _parent frame and load URL from PageA in iframe of PageB ? thanks!!

 
Something like this?
Code:
Function
goes in the HEAD 
function dotwo(pageA,pageB) 
{ 
(parent.frame4.location=pageA); 
(parent.frame5.location=pageB); 
} 



LINK Code

<a href=&quot;javascript:dotwo('newpage1.html','newpage2.html')&quot;>ONE LINK changes two frames</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top