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
SFDC DummySFDC Dummy 

Pop Up Message in after clicking custom Button On detail page

i want to show a pop up message after clicking custom button in detail page

i has created a visualforce page and apex class and create a custom button for that VF page.its working properly when i click custom button
like /apex/vfpagename?id={}....

now i want to display one confirmation popup message after clicking custom button


 
Vijay NagarathinamVijay Nagarathinam
Refer the following link you get some idea,

https://developer.salesforce.com/forums/ForumsMain?id=906F000000097X9IAI

http://bobbuzzard.blogspot.in/2010/09/visualforce-lookup.html

 
Aditya MohanAditya Mohan
Hi 
 You can a confirmation  using the below code:
<apex:commandButton value="Click" onclick="if(!confirm('Are you sure?')){return};"/>
If yes, the action will be executed, else it will return to the same page