Search code examples
javascriptpopupwindow.openwindow.opener

How to control opener page which is opened by window.open method


I have a page in which i m calling another popup by window.open method. The only thing how can i change a label in opener page from popup page while the popup page is still alive ie which is not closed yet


Solution

  • It should be like this:

    window.opener.document.getElementById('label1').value = "the new value";