title: showDialogPopup Refresh Page after Click
body: <p>I have a dialog box which displays an <code>OK</code> button once the process completes. </p>
  
  <p>I would like to refresh the page once user clicks OK.</p>
  
  <p>However, in my existing code, there isn't a code to handle the behaviour after clicking OK.</p>
  
  <p>Below is my current code</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: wsurl + "BackendRequest",
      data: '{ sDomain : "' + domain + '", sUserName : "' + username '"}',
  
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: function (data) {
          document.getElementById('btnGenerate').disabled = true;
          showDialogPopup('Generate Request', data.d);
          //window.location.reload();
      },
      error: function (objXMLHttpRequest, textStatus, errorThrown) {
          showDialogPopup('Generate Request', data.d);
          //window.location.reload();
      }
  });
  </code></pre>
  
  <p>The current <code>window.location.reload();</code> refreshes the page immediately.</p>
  
  <p>Is there a way to refresh the page only after user clicks <code>OK</code> in the <code>showDialogPopup</code> method?</p>