2

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

1

Try the below code

function myClose(){
   self.close();
   window.parent.location.href="/_ui/core/email/author/EmailAuthor?doc_id=00Pf0000000x1HuEAI&p3_lkid=006f0000004fKcj";
}
| improve this answer | |
  • Thanks Mohith for your comment..But i don't want to refresh the parent window.I want parent window to redirect some other URL.In my case Email Author (Salesforce Standard email functionality) – miku Jun 14 '14 at 19:37
  • 1
    ok so i changed URL in parent location.Hopefully this is what you looking at – Mohith Shrivastava Jun 14 '14 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.