Activity Forums Salesforce® Discussions Refresh parent page upon closing child with JavaScript

  • Refresh parent page upon closing child with JavaScript

    Posted by Piyush on April 30, 2016 at 1:08 pm

    I want to close the child tab and refresh the parent tab scenario.

    script

    function closeRefresh(){
    window.opener.location.href="/{!$CurrentPage.customer.id}";
    window.top.close();
    }

    This script is working fine in Chrome but it is not working in IE .In IE the child tab itself refreshing and loading the parent page in the child tab

    Himanshu replied 8 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Himanshu

    Member
    April 30, 2016 at 1:34 pm

    Hi piyush,

    You can try this script in your code that helps you to work in IE.

    window.opener.location.reload();

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos