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
SrikanthKuruvaSrikanthKuruva 

Refresh Parent Window

Hi All,

 

Following is the problem.

i have a vf page which on beign closed should refresh the parent window. Lets take the following example.

i created a custom link on Account which opens a vf page in a new window. When i click a button on the vf page the parent window (i.e. the account page) should refresh. 

Any solutions are greatly appreciated.

 

Srikanth

kiranmutturukiranmutturu

Try putting "return false" part inside the onClick attribute

bob_buzzardbob_buzzard

You may have difficulty making the parent window refresh as its from a different domain and exists in a separate window. I've found that you can refresh a standard page from a VF iframe embedded in it, so you may have to go that route.  You'll probably need to put the link/button into the VF page, as that way the popup window will be able to communicate with its opener (which will be from the same domain also).

MrudulaMrudula

In the Script code,use ' window.parent.location'.

give parent window url in window.parent.location,

for ex:

function ref(){


window.parent.location = '/'+500Z0000000huiHIAQ;

}

 

here '500Z0000000huiHIAQ' is the id of parent record.in your Case give Account ID.