When I click a button, I am invoking a JavaScript function from the child ASPX page.
function closeChildWindow() {
window.opener.document.forms(0).submit();
self.close();
}
This code snippet closes the child page and triggers a post back on the parent page. However, the parent page opens in a new tab, which is not the desired behavior.
I would like the postback to occur on the parent page in the same tab that is already open, without creating a new tab. Can someone please assist me with this?