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
PrattyPratty 

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&colon;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

Best Answer chosen by Admin (Salesforce Developers) 
NiketNiket

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

NiketNiket

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. 



This was selected as the best answer
PrattyPratty

It's working fine. thank you very much Niket.

 

Regards,

 

Pratty

NiketNiket

glad to hear.

 

Please mark it as the solution if it answers your question so that others can also take benifit. 

 

Ckeck My Blog