i am workin on a chat module,
i need to open a popup window if other user gets a new message, if popup window is not open,
e.g if user got 2 messages from user A and user B
then only 2 popups will be open and if user close 2nd popup then only 2nd will be open because it is currently not open,
i don't want window.open function if window is already opened.
it should work in firefox and ie. please.