I am opening a pop-up from my main page by window.open.
On the pop-up there is a YES button and a NO button.
When I click on YES button I want to replace the calling page at the background of the pop-up by a new page..i.e. I want to open a new page in the same browser instance as the calling page, and close the pop-up.
I tried doing window.open(new_page) at the YES button and then window.opener.close to close the calling page. But that obviously opens the new page in a new browser instance. I donot want that. I want to have the new page in the same browser instance as the parent page of the pop-up.Please help me. Thanks in advance.
Gladson Jacob replied
Then, call this script
var p_win = window.self; p_win = p_win.opener; p_win.location.href="new.htm"; window.close();
during the second round. That is, on clicking the Yes, submit the form and in the onInputProcessing, set a flag and on the layout, check the flag and then execute the above code.