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
diydiy 

doubt in popup window

I have list a Account details in pageblock table... First field of the table  is a command button.. when i click a button, popup window will open and   i add a single contact in pop up window for corresponding account.. How will i do?

gbu.varungbu.varun

Use can use in this way.

<apex:commandButton value="ButtonName" onclick="window.open('/{!Account.id}','','scrollbars=1,width=1400px,height=750px');" />

 

If it does not work please let me know.

 

 

Thanks,

Varun

diydiy

Thanks .. Can u explain the code?

gbu.varungbu.varun

Hi Divya,

 

 

This button will  work on click event and it will call window.open() function. You can see window.open here:

http://www.w3schools.com/jsref/met_win_open.asp

 

 

 

If my soultion works please accept the solution.

 

Thanks,