I think my title was informative enough. 🙂
I close the child window like this:
self.close();
Just before this, I want the parent window to know that the child has closed. I am making use of this:
window.opener.startLoad();
The above will run a function that is on the parent window that I need it to run upon the child window closing.
However, this has led to me getting an error:
Permission denied to get property Window.startLoad
window.opener.startLoad();
Even if I could fix this error, I was told it may be due to JavaScript file being in a different folder and therefore seen as a different domain. Will this work across all browsers? If not, is there a safer solution that is efficient and compatible across all the browsers?
Thank you for any help.
This should work as long as the popup is from the same domain as the parent, otherwise due to security restrictions it will never work. Folder is irrelevant.