Page 1 of 1

loading several frames at the same time

Posted: Sat Feb 22, 2003 8:20 am
by cgildenhuys
Is it possible to load more than 3 frames at the same time?
I'm using this code:
<SCRIPT LANGUAGE="JavaScript">
function loadFrames(frame1,page1,frame2,page2,frame3,page3,frame4,page4) {
eval("parent."+frame1+".location='"+page1+"'");
eval("parent."+frame2+".location='"+page2+"'");
eval("parent."+frame3+".location='"+page3+"'");
eval("parent."+frame4+".location='"+page4+"'");
}
</script>

it works fine with 3 frames but after I added a fourth it is only loading the top frame.
Should this code work, or is there another way to do this?
thanks