loading another iframe from the parent

to refer to the parent from within iframe:

var parent = window.parent;

to  refert to the iframe from within the parent:

var iframe= window.all.iframeEl;

//the url of the iframe
var url = iframe.src

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


%d bloggers like this: