I am trying to set the value to the hidden field in parent window from child window and want to set the value to the parent window only when popup window is closed.
This is working fine when i use button to close the window.
The script for the button is:
But the same condition fails when i click (X) button in title bar. Can anyone help me out with this issue