<apex:page >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page: TestCodeOne
<!-- End Default Content REMOVE THIS -->
<apex:form>
<apex:tabPanel>
<apex:tab/>
<apex:tab label="test" name="test" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab> //instead of PopupInVFpage use ur page name
<apex:tab label="test1" name="test1" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>
<apex:commandButton value="Submit" onTabEnter="window.open('/apex/PopupInVFpage');"/>
</apex:tabPanel>
</apex:form>
</apex:page>
If you want to create a tab like "Account tab", which open your VF page then you have to create a new tab by following below steps.
1) Click on Setup link at your right upper corner, 2) In left hand side their is a section Setup Area. 3) Click on Create. 4) so final --> Setup --> Create -- Create Tab -- > Click New button in the Visualforce Tabs related list.
Select your visual force Page , and Icon and in label give it a name to your tab,
I have created one VF page in that page there are 2 tabs using <apex:tab> as Home and Product.So what i want is if click the Product tab it have to open the other VF page.
<apex:page >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page: TestCodeOne
<!-- End Default Content REMOVE THIS -->
<apex:form>
<apex:tabPanel>
<apex:tab/>
<apex:tab label="test" name="test" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab> //instead of PopupInVFpage use ur page name
<apex:tab label="test1" name="test1" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>
<apex:commandButton value="Submit" onTabEnter="window.open('/apex/PopupInVFpage');"/>
</apex:tabPanel>
</apex:form>
</apex:page>
Try like this,
Mark this as best answer if its helps.
Thanks.
Praveen Murugesan
All Answers
If you want to create a tab like "Account tab", which open your VF page then you have to create a new tab by following below steps.
1) Click on Setup link at your right upper corner,
2) In left hand side their is a section Setup Area.
3) Click on Create.
4) so final --> Setup --> Create -- Create Tab -- > Click New button in the Visualforce Tabs related list.
Select your visual force Page , and Icon and in label give it a name to your tab,
Below link tell you about tabs in salesforce
https://help.salesforce.com/HTViewHelpDoc?id=dev_tabdef.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=dev_tabdef.htm&language=en_US)
Below link tell you how to create a tab for visualforce page.
https://help.salesforce.com/HTViewHelpDoc?id=creating_custom_object_tabs.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=creating_custom_object_tabs.htm&language=en_US)
IF it helps you than please mark it as a solution and ENJOY APEX
Pls expalin bit breifly,
Thanks
Try like this,
Mark this as best answer if its helps.
Thanks.
Praveen Murugesan