Hello Eric Thanks for your code. But in our application we have we a main window from App A which would open a link to a new windown in appB , App A and App B are independent application afterr it has been opened.
Your code if i understand right has a instance variable called winPop and then if a window is opened it will be assigned true so when next time someone trries to click on the link to open a window it would fail saying it is already open.
But this will not help in my scenario when if the app B window is closed by that application or by user of browserr for app b. The instance variable in my application will always think there is App B window is always open. SO how can i handle this scenario like when App B is prresent use it otherwise open a new window.
Hello Eric Thanks, The code works perfect till from application A i stay on the same page and try to invoke the link to app B.
If I move away frm that page in App A the variable is initiased to false and the next time when u click on the link coming back to the page which has the lnk it tries to open window again
Hello Eric Thanks for your rreply. I understand that if you move away from the page which originally created the opened window you loose the new window object refrence (winpop = false) again.
So i am thinking of a way to maintain it even if i move away from the page and I think of 2 ways 1. Using cookies. Write a javascript to write a cookie and store the reference when i open a new window and when i move away frorm the page i initialize the value of winPop by getting the value from cookie. 2. using netscape.javascript.JSObject, please tell me whether it is possible at all. Would appreciate your expert comments on this.