Forum Moderators: open
Assume you've named the frames to be changed frame4 and frame5.
Assume the HTML files to be loaded into those frames are newpage1.html and newpage2.html
FUNCTION definition
(goes in the HEAD section or .js file for the HTML of the nav frame)
function doTwo(pageA,pageB)
{
(parent.frame4.location=pageA);
(parent.frame5.location=pageB);
}
LINK
(code for the HTML page)
<a href="javascript:doTwo('newpage1.html','newpage2.html')">ONE LINK changes two frames</a>
WEIRD STUFF
The BACK button will only go back one frame at a time, not both at once. If that's a problem, the only workaround I can think of is forgetting the Javascript and having the link load an entirely new frameset, with the individual frames holding the new HTML documents (and the old documents, for the frames that will remain the same)