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
Karthick RajaKarthick Raja 

Refresh a VisualforcePage

Hi folks, 
         Can anyone tell me how to refresh the current visualforce page after clicking some link?
 I need a sample code for this.

Thanks in advance
Virendra ChouhanVirendra Chouhan
Hi Karthick,

JavaScript can help you.
in the Onclick attribute of link use this inline script  onclick="window.location.reload()
<apex:commandLink value="Refresh" onclick="window.location.reload();"/>