title: window.location.reload not working for Firefox and Chrome
body: <p>I want to change the user status on click of a Button, so all I am doing is, detecting the current status and changing, if needed.</p>
  
  <p>But in this case the changes the status in backend, but to show the status the page needs to be refreshed, as on refresh it checks the current status and shows. So I am using the "window.location.reload" property to show the latest status on page</p>
  
  <p>All the things are working fine in IE. But in case of Firefox and Chrome, The status is not changing. I think "window.location.reload" is not working, because when I just comment this line and try clicking the button and manually refresh the page it shows the changes Status.</p>
  
  <p>Can you please suggest what should I use to make this work in Firefox and Chrome?</p>
  
  <p>When I googled, I found somewhere it works in Firefox and Chrome if you give it in "setTimeout()". I tried it, but even then its not working for me.</p>
  
  <pre><code>&lt;script&gt;
  
      $(document.body).on('click', '#activate', function () {
          var pkgVersion = $(this).attr('data-version');
          alert("@Url.Action("SetActivePackage", "Deployment")", { version: pkgVersion });
          $.get("@Url.Action("SetActivePackage", "Deployment")", { version: pkgVersion }).done(function () {
  
          });
           setTimeout(function () { window.location.reload(data); }, 0);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Please suggest!</p>