Reputation: 736
I have a pop up window which has a button. onclick
of the button I open another window using window.open(url)
. I want to close the parent window in onload
event of the child event.
I tried window.opener.close()
. But it was not of any help.
I open the child window using the following code in the parent window
$(function () {
$('#testpopup').click(function () {
window.open('complete.aspx');
});
});
Upvotes: 0
Views: 1126