Home>

I think that jQuery's beforeunload event is used to display the pop-up when leaving the page, but I think that the browser's own window will be displayed.

Is it possible to change the design of this window?
I want to display it in any browser with the following design.

I would appreciate it if you could tell me if there is a solution.

  • Answer # 1

    You should see your browser's own window.
    Is it possible to change the design of this window?

    If you can replace the warning dialog that your browser gives with any dialog, it could be a security vulnerability.
    Therefore, I think it is impossible.

    Re: Jake5

  • Answer # 2

    I want to display it in any browser with the following design.

    From within the web pageIf you try to move to another site by the operation of, it is possible to control to display such a display after detecting it with JavaScript.

    If you want to fly outside the HTML frame, close the browser, type another address in the URL bar, etc.onbeforeunloadYou can only do the standard dialog of.

  • Answer # 3

    Before unload is a work that temporarily blocks the user's page transition.
    Depending on the specifications, it is expected that there will be an excessive disadvantage to the user, so there is a limit to what can be done.
    There is no choice but to leave it to the specifications of the browser