[RESOLVED]Parent Obj from iframe?

$(document).ready(function () {

function getOrgAndLangData() {
        function (data) {
            var orgAndLangObj = $.parseJSON(data);

I have an iframe called main. How do I access orgAndLangObj from the iframe? The above code is in the parent page.


Could you try window.parent or window.top ?

window.parent worked. Thanks.

You’re welcome, have a nice day!

Leave a Reply