|
Q1061 Is it possible for a link to target two different frames at the same time?
irt.org | Knowledge Base | JavaScript | Link | Q1061 [ previous next ]
Q1061 Is it possible for a link to target two different frames at the same time?
You can either load another frameset into the bottom frames if you
split the definition up into two:
<FRAMESET ROWS="50%,*">
<FRAME SRC="top.htm" NAME="top">
<FRAME SRC="bottom.htm" NAME="bottom">
</FRAMESET>
|
And then in bottom.htm:
<FRAMESET COLSS="50%,*">
<FRAME SRC="left.htm" NAME="left">
<FRAME SRC="right.htm" NAME="right">
</FRAMESET>
|
And then in top.htm:
<A HREF="bottom2.htm" TARGET="bottom">Replace botton frames</A>
|
and then in bottom2.htm:
<FRAMESET COLS="50%,*">
<FRAME SRC="left2.htm" NAME="left">
<FRAME SRC="right2.htm" NAME="right">
</FRAMESET>
|
Or you could use JavaScript to target one of the frames with say the
following frameset definition:
<FRAMESET ROWS="50%,*">
<FRAME SRC="top.htm" NAME="top">
<FRAMESET COLS="50%,*">
<FRAME SRC="left.htm" NAME="left">
<FRAME SRC="right.htm" NAME="right">
</FRAMESET>
</FRAMESET>
|
With a link in top.htm looking like:
<A HREF="left2.htm" TARGET="left" onClick="parent.right.location.href='right2.htm'">change bottom frames</A>
|
Feedback on 'Q1061 Is it possible for a link to target two different frames at the same time?'
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.