+ Start a Discussion
Nagarjun TNagarjun T 

what is the command link action for new pop-up window in visualforce page

<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList">
<apex:form >
    <apex:commandButton value="New Contact" action="/apex/customcontacts"/>
<apex:pageBlock >    
            <apex:pageBlockTable value="{!Contactlist}" var="A"> 
                    <apex:column headerValue="ConUser-added imagetact Name"> 
                    <apex:commandLink action="/apex/customcontactsdetailedpage?id={!A.id}" target="_blank" >
                    {!A.Name}
                    </apex:commandLink>
                </apex:column> 
            <apex:column value="{!A.ID}"/>
            <apex:column value="{!A.Phone}"/>
            <apex:column value="{!A.mailingcountry}"/>
            
            </apex:pageBlockTable> >
 </apex:pageBlock>           
            </apex:form>
  </apex:page>
Best Answer chosen by Nagarjun T
Om PrakashOm Prakash
Hi,
I already mpdified your code and provided the solution in your another simillar question. Haev a look.
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005WF9QAM

Here is your updated code
<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList">
<apex:form >
<apex:commandButton value="New Contact" action="/apex/customcontacts"/>
<apex:pageBlock >    
    <apex:pageBlockTable value="{!Contactlist}" var="A"> 
            <apex:column headerValue="Contact Name"> 
            <apex:commandLink onclick = "JavaScript:window.open('/apex/customcontactsdetailedpage?id={!A.id}','ContactDetails','height=500, width=500'); return false;">
            {!A.Name}
            </apex:commandLink>
        </apex:column> 
    <apex:column value="{!A.ID}"/>
    <apex:column value="{!A.Phone}"/>
    <apex:column value="{!A.mailingcountry}"/>
    </apex:pageBlockTable> 
 </apex:pageBlock>           
 </apex:form>
 </apex:page>