You need to sign in to do that
Don't have an account?

How to get back to original site from popup page.
Hello,
I have created a popup to update the contact's information on contact's info page. Here is the code.
<script>
function popup(page)
{
window.open(page,'items','scrollbars=1,width=1000,height=500,resizable=1');
}
</script>
<apex:commandLink onclick="javascript:popup('apex/ContactPage?Id={!Contact.Id}')" value="{!Contact.Name}">
1. After updating information on this "ContactPage" when I click the "Submit" button that popup remains open with my new redirected url. I want to close that popup after submit and redirect to my site.
2.Also I want to lock the original site when popup is open i.e. no one able to open new popup or click on another link.
Can anyone help me to get rid of it.
Thanks in advance.
Pratty
Hi ,
Have a look into this link :
http://salesforcesolution.blogspot.in/2012/01/close-popup-and-refresh-parent-window.html
let me know if it helps you or not .
Please mark it as the solution if it answers your question so that others can also take benifit.
All Answers
Hi ,
Have a look into this link :
http://salesforcesolution.blogspot.in/2012/01/close-popup-and-refresh-parent-window.html
let me know if it helps you or not .
Please mark it as the solution if it answers your question so that others can also take benifit.
It's working fine. thank you very much Niket.
Regards,
Pratty
glad to hear.
Please mark it as the solution if it answers your question so that others can also take benifit.
Ckeck My Blog