You need to sign in to do that
Don't have an account?
swapna9
How to generate a visual force page as popup window when we click on custom button
Hi,
I am doing one VF Page.In this one custom button is there.If I click on this button it should open another visualforce page as popup window.
How can I acheive this.Can anyone please suggest me...
Thanks in Advance,
u can get this by using html...try this once
<span>
<a href="javascript:void(0);" onclick="return popitup('../apex/yourVFpage')" class="btn"></a>
</span>
You can also try using
<a href="#" onclick="window.open('.../apex/yourVFpage','_blank')"/>
<apex:page>
<apex:commandButton onclick="javascript:openPopUpWindow;return false"/>
//javascript
<script type="text/javascript">
function openPopUpWindow(){
window.open('/apex/pagename','','width=900,height=600');
}
</script>
</apex:page>
If this works don't forget to mark as solution
i tried ur example but it is not working yar,,,,,,,,,,,,,,,,,,,,please provide any other example to display vf page as popup in vf page
Can you please give the code.