Jump to content

window.open reference


hussainian
 Share

Recommended Posts

Hi!I'm developing an application in JSP. In one JSP, I do window.opn() and store its reference. Then i navigate to other pages. Doing so, i lose my reference to window.open() child. Is there any way the reference may be available throughout the application?One solution to this problem is that let i opened a window like window.open('','winName');Now if on any other jsp, I'll do the same thing again with the same name, a new window will be opened if previously opened window was closed. On the other hand, if the previously opened window is still open, i'll get the reference to that. Here the second case is ok, in which reference is obtained. But the first case, the opening of window in case the previous one was closed is unwanted, hence making this approach unwanted.Is there any better solution?Thanks.AsadUllah.

Edited by Muhammad AsadUllah Bhatti
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...