Changing Two Frames With One Click

Changing Two Frames With One Click

When you create a Web site that includes frames, you can easily use a hyperlink in one frame to change the contents of a second frame. But you may frequently want to change two frames with one click.

To do so, add the following parameter to the HTML that defines the link:


The complete HTML for the link would then look something like this:

  onClick="parent.frame2.location.href="target2.htm">Click Here 


Share the Post: