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 :
try this (you will know if the open window was called):
var isOpen = "false"; function OpenPopup() { if(isOpen == "false") { isOpen = "true"; window.open("mystopchat.php?stat=1&session="+data['myid1']['session_id'] [i],"win1","width=500,height=500"); } }