I want to check if a popup window is already open , before I open the popup window. How do I get it done using Jquery?
Below is my code to open a new popup window :
var newWindow = null; function openwindow() { // open the new window only if newWindow is null (not opened yet) // or if it was closed if ((newWindow == null) || (newWindow.closed)) newWindow = window.open(...); }