loading several frames at the same time

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
cgildenhuys
Forum Newbie
Posts: 8
Joined: Fri Feb 21, 2003 3:10 am

loading several frames at the same time

Post 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
Post Reply