Access Frame into frame

Posted: August 6, 2010 in JavaScript Stuffs

myframe = parent.parent; // window is default
var len = myframe.frames.length;

for(i=0;i<len;i++)
{
alert("parent "+ myframe.frames[i].name);
len1 = myframe.frames[i].frames.length;
alert(len1);

for(j=0;j<len1;j++)
{
alert("child "+ myframe.frames[i].frames[j].name);
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s