By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 2,008 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Is there a way to know that a popup browser window has been closed by the user?

P: 1
I have a "GENERATE" button in my JSP, on clicking this button a new browser window opens( which has no control, meant for viewing only). Now I want to disable this button after the click, and enable it only when the popup has been closed by the user. Is this possible ??
May 3 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
this is possible - disable the button on click and in the script of the page in the popup-window refer to the window.opener to enable the button 'onunload' of the popup-page for example.

PS: this only works when the page in the popup is not from another domain - what i assumed at the moment
May 29 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.