Mutlipage Link?

Is it possible to open two pages in two different frames using one link?<br />
<br />
Like I have two frames on a page. A link on the page would load two different pages in their corresponding frames.<br />
<br />
Is it possible?<!--content-->maybe with javascript or something, but not with normal html. i don't know how it would be done, but you could always open a new page onload(), but it would open two pages every single time the page is visited, because it would have nothing to do with a link, it would just be built in like that.<!--content-->It requires JavaScript. Here is the code.<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"pageotherinframe.html"<br />
onClick="window.self.location='pageinthisframe.html'" target="otherframe"><br />
Clique</a><br />
<br />
Be sure to change all the file and frame names. <br />
I hope this helps.<br />
:)<br />
Peace,<br />
Ed<!--content-->I dont think that would work. Go to my website (<!-- m --><a class="postlink" href="http://www31.brinkster.com/jgac/">http://www31.brinkster.com/jgac/</a><!-- m -->) and you will see what I mean.<br />
<br />
The menu on the left would open up two different pages, one in each of the frames (mainframe)(menuframe)<!--content-->http://hotwired.lycos.com/webmonkey/97/02/index4a.html?tw=authoring<br />
^ Look who I borrowed the code from ^<br />
<br />
<br />
Peace,<br />
Ed<br />
:D<!--content-->2 or 20....<br />
<br />
PARENT FRAME<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onClick="parent.frames[1].location='left2.html'; <br />
parent.frames[2].location='zeeland/geld/index.html'; <br />
parent.frames[3].location='right2.html';"> yep</a><br />
<br />
The first frame in your frameset is 0<br />
the second 1 .....<br />
<br />
<br />
<br />
:rocker:<!--content-->or, which is close to what peter suggested.<br />
<br />
<HTML><br />
<HEAD><br />
<TITLE>FRAME 10</TITLE><br />
<SCRIPT language="JavaScript"><br />
<!--Hide<br />
Function change2()<br />
{<br />
parent.left_frame.location="page3.htm";<br />
parent.right_frame.location="page4.htm";<br />
}<br />
//--><br />
</SCRIPT><br />
</HEAD><br />
<br />
<BODY bgcolor="#FFFFFF" Text="#000000"><br />
<CENTER><br />
Click the link below To change both frames.<br />
<BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"javascript:change2()">Change 2 Frames</A><br />
</CENTER><br />
</BODY><br />
</HTML><!--content-->Thankyou Peter, that is exactly what I was looking for. <br />
<br />
Thanks,<br />
JGAC<!--content-->I am a tad bit confused on how this would apply to my iframes.<br />
<br />
I do not have a set frameset, just two different iframe codes.<br />
<br />
How do I go about applying it to two iframes?<br />
<br />
Or would it still be the same, just edit the left_frame and right_frame to the iframe's names?<br />
<br />
If not Im gonna have to redo the site using a frameset, not just iframes.<!--content-->This ona will work:<br />
<A href=http://www.htmlforums.com/archive/index.php/"#" onClick="document.frames.een.location='http://x.com'; document.frames.twee.location='http://y.com';"><br />
Vervang de vensters Klik Hier</a><br />
<br />
where een is iframe1 name<br />
and twee iframe2 name<br />
<br />
but the first code also<br />
if you rename [1] to your first iframe name<br />
<br />
:rocker:<!--content-->yea that was what I was thinking. I just didnt want to do anything without knowing whatll happen. <br />
<br />
Thanks for the help.<!--content-->
 
Back
Top