You must Sign In to post a response.
  • Category: JavaScript

    Onbeforeunload not working in chrome

    following piece of code is working fine in IE but not working in Chorme. I am trying to reload the parent window after close of popup window.

    window.onbeforeunload = function (e) {

    From server side same code working fine but i want to refresh parent page if user close page from browse close button.
  • #769674
    can you try with Jquery, bind the beforeunload event through jquery like below and check once

    $(window).bind('beforeunload', function (e) { });

    B.Ramana Reddy

  • Sign In to post your comments