Home | All Questions | alt.html FAQ > HTML Frames

How do I make a link open two different pages in a framed enviroment?

Have the link call a function that sets both of the frames' locations: the function would look like this:

function changeframes () {
 top.frame1.location = "whatever1.html";
 top.frame2.location = "whatever2.html";

The link would look like this:

<a href="#here" name="here"
  onclick="changeframes(); return false;"
  >frame change link</a>

Recommended Resources


Related Questions