Frame links

They have: 24 posts

Joined: Jan 2000

Is there any way to make a link change the pag in TWO frames at the same time?

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I think I have a tutorial on what you are after at:
http://www.pageresource.com/jscript/jframe2.htm

Hope it helps. (had to try the big grin)

They have: 99 posts

Joined: May 1999

<HTML>

<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
//This assumes that you have a page with multiple frames defined.
function change_2_frames(){
parent.frame1.document.location="/new_url_one.html";
parent.frame2.document.location="/new_url_two.html";
}
</SCRIPT>

</HEAD>

<BODY>
Here is some example code--

<FORM>
<INPUT TYPE="BUTTON" NAME="btnOne" VALUE="Change 2 Frames at Once!"
ONCLICK="change_2_frames();">
</FORM>

</BODY>
</HTML>

They have: 24 posts

Joined: Jan 2000

Cheers

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.