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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question with opening mutiple html documents..... 1

Status
Not open for further replies.

FireDesigner

Technical User
May 5, 2002
11
US
Would like to know if it is possible using frames to open two seperate html documents from one link in seperate frames. So basically is it possible to have two target frames from one link? Thanks you for any advice.
 
use javascript to target both frames. I cant remember exactly at the mo but I am sure someone here will jump in

Cheech [Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
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>
 
Nothing those are just variables that take
'newpage1.html','newpage2.html'

Basically in this script
pageA = newpage1.html
pageB = newpage2.html

 
I got it working great locally but when I upload it to the server and go to the URL the dotwo function appears to be MIA. The site I am working on is if you have a chance please take a look. What I am trying to accomplish is have the links across the top open the html doc in the centerframe and the html doc in the right frame with one click. Is there something I need to do to the remote server? Thanks for your help.
 
I wen to the site and it seems to work fine. On on of the links it can not find the page specified but other than that I clicked &quot;Fire Prevention&quot; and it did what you asked and then I clicked home and it updated both frames again.

If you find this useful then click the
&quot;Mark this post as a helpful/expert post!.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top