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
s-Forces-Force 

Custom BACK Button

Hello,

 

I want to create the custom button i.e. BACK button on my layout. If anyone know pls tell how its possible. If anyone having code for the same pls post it...... its really urgent for me.

 

I am using javascript in custom button as : onClick="history.go(-1);"    but its giving syntax error.

 

Pls if anyone having solution for the same post that solution.

 

Thanks In Advance.

 

Pradeep_NavatarPradeep_Navatar

This works fine on my end. You must be doing some thing wrong at your end. I have created a custom button and choose content source as a Onclick javascript and it worked fine.

 

 

s-Forces-Force

Thanks for reply dear,

 

Will you pls share your code or that screen shot where you write the same code. may be am doing this with wrong way.

 

 

Ken KoellnerKen Koellner

I tried something like that in a Command Button and it didn't work.  I'd be great if some would post a working example, in VF

 

I run the examples from w3schools all the time and they work fine.  But it's applying it to VF that's the trick.