Forum Moderators: open
function doTwo(pageA,pageB)
{
(numberoneiframe.location=pageA);
(numberTwoiframe.location=pageB);
}
<a href="javascript:doTwo('page1.html','page2.html')">Link</a>
AND
function loadFrames(page1,page2) {
eval("window.frames.menu.location='"+page1+"'");
eval("window.frames.contents.location='"+page2+"'");
}
<a href="javascript:loadFrames('page1.htm','page2.htm')">Link</a>
The first error I got (with the first set of code) was that "numberoneiframe" was not defined. The error with the second set of code was the "window.frames.menu.location" is null or not an object.