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

Close child window and redirect parent window..?
I am opening a POPup window..which i am opening a VF page onlclick of a custom button.I Want to close the child window and redirect the parent window to email author page with some parameters/
https://cs16.salesforce.com/_ui/core/email/author/EmailAuthor?doc_id=00Pf0000000x1HuEAI&p3_lkid=006f0000004fKcj
I know how to close the child window but can someone tell me to redirect the parent window
function myClose(){ self.close(); window.opener.location.href="/{!$CurrentPage.parameters.Id}"; //you could also use self.close(); }
I would really appreciate.
Thanks
If this helps,please mark it as best answer to help others :)
https://cs16.salesforce.com/_ui/core/email/author/EmailAuthor?doc_id=00Pf0000000x1HuEAI&p3_lkid=006f0000004fKcj
Hope you understand
It's bit confusing for me.If you are getting the Ids from controller how will you get that in your JS function coz the JS function is gtting id from URL.
Also,you should usen Pagereference method to redirect if the ids are in controller.
Hope thi helps !!