Skip to content Skip to sidebar Skip to footer

Disable Parent Window On Window.open And Re Enable On Close Of Popup Window

I have a parent window where i open up a Popup window on click of a button: function Test() { $('body').append('
')

Solution 1:

  1. You can access the parent window in your popup Window using the window.opener object, or:

  2. You can access the child window from the parent with the popupWindow object. e.g if the popup closes you can register the unload event in your parent window as such:

    popupWindow.onunload = function() { alert('popup was closed or redirected') }

Post a Comment for "Disable Parent Window On Window.open And Re Enable On Close Of Popup Window"