Click to See Complete Forum and Search --> : open pages in multiple frames from one link?


cheesekeeper
12-09-2003, 12:07 PM
I am a newbie. I am trying to use one link to open pages in multiple frames. I have Frames A, B, C, and D. When a link in Frame A is clicked, I want a page to load in B, C, and D.

How can I do this?

batfink
12-09-2003, 01:15 PM
Assume you have declared your frames (using the names a to d).


This JS code is in frame a

function doIt()
{
window.parent.b.location.href="anypage.html";
window.parent.c.location.href="anyoldpage.html";
window.parent.d.location.href="anyotherpage.html";
}

This is your HTML in frame a

<a href="javascript:doIt()">Load Frames</a>

cheesekeeper
12-09-2003, 08:59 PM
Works like a charm. Thanks a lot!