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
rajsrajs 

Custom buttons on iframe with incorrect behaviour

Created one visualforce page and placed this on "Home Page"  by using "Sidebar component" with <iframe> tag. Here my problem is, when I click the button on that page, It refreshes with in the iframe instead of refreshing parent window.

 

Can you please guide me to refresh the parent window from iframe?

 

Thanks in advance!

SargeSarge

Hi,

 

  If you are using javascript to open a page with new url then use

 

   window.parent.location.href = "<url">;

 

   or

 

window.top.location.href = "<url>";

 

Hope this helps.

Pradeep_NavatarPradeep_Navatar

Try out the following :

 

window.parent.location.replace('/{!$CurrentPage.parameters.id}');

 

Hope this helps.