Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

regarding pop-ups

Hi all,

I am opening a pop-up from my main page by

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 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.



Former Member
Former Member replied

Then, call this script

var p_win = window.self;
        p_win = p_win.opener;

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question