Javascript window.opener redirect question.
-
I am working on an app for a big company and we have a subdomain website page that is opened by javascript. We want to have the opened page redirect the window.opener when it is closed. The big thing is that the opener is on a different subdomain (same top level domain). Will this be permitted or is blocked by browser 'cross-site scripting'? I've tried a couple methods but can't seem to get it to redirect. Mainly trying window.opener.location.href='blah.htm';
-
I am working on an app for a big company and we have a subdomain website page that is opened by javascript. We want to have the opened page redirect the window.opener when it is closed. The big thing is that the opener is on a different subdomain (same top level domain). Will this be permitted or is blocked by browser 'cross-site scripting'? I've tried a couple methods but can't seem to get it to redirect. Mainly trying window.opener.location.href='blah.htm';
Try opening this page with javascript ...
popup
Close this window with the CloseMe button or with the browser control.
window.onbeforeunload=function(){window.opener.location.href="http://msn.com"}