Popup windows are used so that users can view content without leaving the first page. For privacy reasons, they can be blocked by users. Popup windows often used when passing login verification to sites. You can also communicate between popup windows and the original page.
See the below links for how to use popup windows:
You can implement popup windows using the following code:
var popup = window.open("url", "_blank", "attributes_of_window");//to open popup
popup.close();//to close popup
You can communicate to the open windows by using
popup.postMessage("message", "domain_of_popup")
You can receive messages from open windows by using
window.addEventListener("message", function(event) {
message = event.data;
}, false);
where the message is held in event.data