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
AK_SmithAK_Smith 

window.location.reload( true ) reloads parent page in frame

Hello i need only to reload frame with VF page.
I use <apex:commandButton value="Check" id="checkBtn" oncomplete="window.location.reload( true );"/>, but it reloads parrent page inside the visual forece page, how to fix it?
Magesh Mani YadavMagesh Mani Yadav
Hi AK,
Try something like this.
<apex:commandButton value="Check" id="checkBtn" oncomplete="document.getElementById('iframeID').contentWindow.location.reload();"/>

DON'T forget to replace iframeID with your actual Iframe id.