none
window.onunload not working in IE 11 RRS feed

  • Question

  •  @HostListener('window:unload', ['$event'])
      unloadHandler($event) {
        this.LogOut();
      }
      @HostListener('window:beforeunload', ['$event'])
      public beforeunloadHandler($event) {
        var msg = this.messageBundle['windowClosemsg']
        $event.returnValue = msg;
        return false
      }

    • Edited by Prakash Ari Wednesday, September 16, 2020 4:51 PM
    Wednesday, September 16, 2020 4:50 PM