Thanks for your help.
Can we submit parent form in child window.means in parent form i have one form like companyFrom and in child window i want to submit that form so i write something like this
window.opener.document.companyFrom.action = '<?php echo base_url();?>company/setCompany
window.opener.document.companyFrom.submit();
but it will give the following error.
window.opener.document.companyFrom is undefined
]