Tuesday, March 1, 2011

Accessing parent from an iFrame

Accessing a the parent page which contains an iframe from with in the iFrame is as follows,

var parentDOMDoc=parent.document

again, access restrictions are applicable here i.e if the IFrame's document are not in the same domain as the parent frame, then you may be denied access to it's contents due to security features of most browsers.

No comments:

Post a Comment