I know how to reference a popup if it is created on the same page it is being referenced by. For instance:
However, is it possible in Javascript to close a popup window that was created on a completely different page? You can give the window a target name, but I am not sure how you can use that to have Javascript reference the popup window effectively. It seems like you have to create the popup on the same page or in the same script as when you reference it later on.
Any thoughts?
Code:
var newWindow = window.open();
newWindow.close() // now referencing the new window from Javascript
However, is it possible in Javascript to close a popup window that was created on a completely different page? You can give the window a target name, but I am not sure how you can use that to have Javascript reference the popup window effectively. It seems like you have to create the popup on the same page or in the same script as when you reference it later on.
Any thoughts?