if I create a popup in JavaScript I can access its properties:
var myWin = window.open("test.htm");
myWin.property1;
but my question is, can I access properties/methods of parent window from the child?
if I create a popup in JavaScript I can access its properties:
var myWin = window.open("test.htm");
myWin.property1;
but my question is, can I access properties/methods of parent window from the child?
Yes. Just do window.opener
, this will get you access to the parent window. For example, to refresh the parent window, you can do
window.opener.location.refresh();