I have a visual force page in our support console that when yo click on the name of the account it opens the account page. I would like it to open a new tab on the console instead of going to the account and leaving the console. I can't seem to figure out how to do this. Here is my code.<apex:page showHeader="false" standardStylesheets="false" standardController="Case"><style>p.small { line-height: 0.5;}</style> <p> <font face = "Arial" size = "3"><b><a style="text-decoration:none" href="⌗" onclick="window.top.location='/{!Case.AccountId}';">{!Case.Account.name}</a></b></font></p> <p class="small"> <font face = "Arial" size = "2"> <b>Support Level: </b> <apex:outputField value="{!case.Support_Level__c}"/> </font></p> <p class="small"> <font face = "Arial" size = "2"> <b>Customer Tier: </b> <apex:outputField value="{!case.Customer_Tier__c}"/> </font></p> <p class="small"> <font face = "Arial" size = "2"> <b>ASA Expiry Date: </b> <apex:outputField value="{!case.ASA_SUB_Next_Renewal_Date__c}"/> </font></p></apex:page>
Hi Jigarshah,When I click on the account name nothing happens, no code error nothing. If I open in a new tab it just show the same tab and doesn't open the account record.