You cannot access the contents or events of the child window, as there are problems with the rights to it in Javascript.
Well, if something is in the same domain, you should try once to do document.domain the same thing in both windows.
as:
var hdomain="yourdomain.com"; if (document.domain != hdomain){ if ((document.domain.indexOf(hdomain)) != -1){ document.domain = hdomain } }
put this on both the parent and child’s pages.
Good luck.
source share