title: Refresh parent page after closing modal
body: <p>When a user opens this modal, they can see their shopping cart information and delete items(other jquery) on the modal. </p>
  
  <p>But how could I refresh the parent page after a user closes up the modal? </p>
  
  <p>I read several posts but did not find any useful information for my situation.  I know I need to use something like <code>window.location.reload(true);</code>  Where should I put that in the code?</p>
  
  <pre><code>$(function(){
  
      $('#main').off('click.login').on('click.login',function(){
  
          $('body').loadmodal({
  
              id:'cart',
              title:'Shopping Cart',
              url:'/cartDisplay/',
              width: '550px',
          }); 
  
  
      });
  });
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <pre><code>    $(function(){
      $('#main').off('click.login').on('click.login',function(){
  
          $('body').loadmodal({
  
              id:'cart',
              title:'Shopping Cart',
              url:'/polls/cartDisplay/',
              width: '550px',
  
          }); 
  
  
      });
  
      $('#cart').on('hidden', function () {
          window.location.reload(true);
      })
  
  });
  </code></pre>