If you are in po-up mode and want to open an open window, use window.opener . The easiest way is to load jQuery into the parent window:
window.opener.$("#serverMsg").html // this uses jQuery in the parent window
or you can use the plain old document.getElementById to get the element and then expand it using jquery in the child window. The following should work (I have not tested it yet):
element = window.opener.document.getElementById("serverMsg"); element = $(element);
If you are in an iframe or frameset and want to access the parent frame, use window.parent instead of window.opener .
In accordance with a policy of the same origin, all this works without much effort, only if the child and parent windows are in the same domain.
Pekka μ Jan 30 2018-10-10T00: 00Z
source share