if (window.onbeforeunload) {
          window.onbeforeunload = function () {
            null;
          };
        }
        location.reload({});