+ 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
Karthick
Virendra ChouhanVirendra Chouhan
Hi Karthick,

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

Regards
Virendra