Here I have one scenario, something cross browsing event handling in javascript.
1. We have a modelpopup on a screen 'first', when click a button which is in modelpopup, opening a new screen 'second'.
2. Screen 'second' has a button cancel, if click on cancel I have to close the 'second' screen, as well the first screen modelpopup.
We are using window.close() to close the 'second' screen, at the same time, we have to find the first window modelpopup and close it.
Can some one please provide the script.