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
Div403Div403 

How to show prompt box when user clicks on Visualforce tab

Hi All,

Can any one help me to solve the below issue. 

I have created a tabs with the help of visualforce page. Now, i need to show the prompt box when user clicks on any tab to enter the dynamic values in Prompt box.

For Example, if i click on below Account Tab, i need to show the Prompt box. 

Please find the below code snippet of visualforce page

<apex:page>
<apex:tabPanel switchType="client" selectedTab="sample" id="theTabPanel">
<apex:tab label="Accounts" name="account1" id="tabOne">
content for tab one
</apex:tab>
<apex:tab label="Opportunities" name="opportunities2" id="tabTwo">
content for tab two
</apex:tab>
</apex:tabPanel>
</apex:page>

Please find the below screenshot. 

Custom tabs created created based on visualforce page
ShashankShashank (Salesforce Developers) 
You may find this helpful: http://salesforce.stackexchange.com/questions/2046/how-to-add-a-confirm-dialog-to-a-command-button

Unfortunately I couldn't find anything specific to vf tabs.