function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thiruchuri AdityanThiruchuri Adityan 

Close iframe dialog on button click

Hai I have created a custom button for a standard page.  And I have written code for that button such that it should open an iframe modal dialog.  Now I want to close that dialog throught the button present in the child page.  I cant use any parent page methods as parent page is a Standard Salesforce Opportunity View page.  

Zuinglio Lopes Ribeiro JúniorZuinglio Lopes Ribeiro Júnior

It depends. Are you using any API library such as jQueryUI? If not, have you tried adding an onlcick event to the child button with window.close() in it? Please refer to this thread: (" target="_blank)


Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Thiruchuri AdityanThiruchuri Adityan
Thanks for your reply. But here I am having cross domain issue.  Parent page is a standard page.  I cant write code in that page..