I\'ve encountered the task to access parent window from iFrame, if the window in iFrame was loaded from another domain. If I understand correctly, all modern browsers do now
If I were you I would check out window.postMessage. It may do what you want:
For reference see the following: