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
Venkateswarlu BVenkateswarlu B 

I want to open a popup window (Dont open VF page) with select list values when onclick javasccript using custom button. Anybody can help me to achieve it.

Ajay K DubediAjay K Dubedi
Hi Venkateswarlu ,
I am not getting your actaul problem but i have tried this code whci is opening a pop up window a vf page and in other a google link
 
<apex:page>
<apex:form >
<script>
function openPopup(page,param){
    window.open(page+'?param='+param,'_blank', 'toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400')
}
</script>
<apex:CommandButton value="ClickMe" onclick="openPopup('{!$Page.AccountDetail}','pram1');"/>
<apex:selectList size="1" onclick="openPopup('{!$Page.AccountDetail}','pram1');">
<apex:selectOption ItemValue="1" />
<apex:selectOption ItemValue="2" />
<apex:selectOption ItemValue="3" />
<apex:selectOption ItemValue="4" />

</apex:selectList>

</apex:form>
</apex:page>
2nd Pop up example :
<apex:page>
<apex:form >
<script></script>
<button onclick="window.open('https://www.google.co.in','Google','height=400,width=400');">
  Click
</button>
</apex:form>
</apex:page>
Eswar Prasad@Sfdc11Eswar Prasad@Sfdc11
HI Venkateswerlu,
pls see below link we can get idea how to call javascript popup.

http://www.infallibletechie.com/2013/07/how-to-create-popup-by-clicking-custom.html

If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.

Regards,
Eswar Prasad.
Venkateswarlu BVenkateswarlu B
Thanks AJAY and ESWAR BUT my qun is different....
I want to open a popup window (Window is not a vf page) with select list values to give input by using custom button onclick javascript.
I have to write code bellow shown. I dont want any VF page.
User-added image