Calling parent window from opened child popup window

This is a way to call the parent window from the popup it launched without adding hooks (just using the built in functionality).

From the parent window opening can be as simple as:

window.open('child.html');

From the child popup window to get a hook method “methodName” from the parent window:

window.opener.methodName();

From the child popup window to get a hook to the parent window elements:

window.opener.document.getElementById("sample").value;
 
2
Kudos
 
2
Kudos

Now read this

Push Notifications on Java EE 5

This is a way to have “server push” notifications to the client’s browser without having AsyncContext available. With a distributed network system, you can’t just store notification messages into the cache and retrieve it quickly by... Continue →