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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SaberDude
    New Member
    • May 2012
    • 1

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

    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 ??
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    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

    Comment

    Working...