one link, two pages??

windows

Guest
i dotn think it is possible but if it is, how do i make one link load two pages, im running my page in frames and i want two frames to change instead of just one.<!--content-->link to one page and have that page be a frame so you can load 2 pages<br />
<br />
hth<!--content--><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-->If I'm not mistaken, Can't you do this:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onClick="window.open('file1.html','frame1'); window.open('file2.html','frame2'); return false">Link Text</a><!--content-->no you can't. you can't open a new window and have it go into the frame. what you did was open 2 seperate windows and didn't load anything into the frames.<!--content-->hmmm...bummer...works with iFrames, so I just figured it'd be the same with regular frames.<!--content-->really? because the frame1 is suppose to be a title I believe. doing a window.open should open a new window, not load a iframe<!--content-->Yep...I'm 100% positive that onclick="window.open('test.php', 'framename')" works with iFrames in IE6 and Mozilla Firebird 0.7. I just tried it.<!--content-->ahh I was wrong. it isn't the title of the page but the windowName. eh the things you learn :)<!--content-->
 
Back
Top