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
shra1_devshra1_dev 

how to create a back button which takes to the previous page

Hi developers,

 

How to create a back button which takes to the previous visualforce page?

 

I tried using :

 

<apex:commandbutton value="back" onclick="window.location(-1);">

and

<apex:commandbutton value="back" onclick="history.goback(-1);">

 

by above tags the same page is loaded once again.

 

help me......

 

 

Pradeep_NavatarPradeep_Navatar

Tryout this syntax : <apex:commandbutton value="back">

 

Hope this helps.

Anu-SFDCAnu-SFDC

I have the same question which i need to resolve.

 

Please help me..