packager icon indicating copy to clipboard operation
packager copied to clipboard

[Enhancement] Confirm closing page

Open EJD799 opened this issue 2 years ago • 3 comments

Add an option to show confirmation when closing the page.

EJD799 avatar Apr 10 '23 12:04 EJD799

There is a way to do that but it only works on HTML, not EXE

The code:

window.onbeforeunload = function() {
    return "Are you sure ";
};

This code is JS so paste it into the Custom JS on Advanced Options

Screenshot 2023-04-11 4 31 31 PM

sp5677 avatar Apr 11 '23 23:04 sp5677

I think issue can be closed now because OP says "Page", not "exe".

VBPROGER avatar May 19 '23 17:05 VBPROGER

leave it open. we haven't added a dedicated option yet

GarboMuffin avatar May 19 '23 20:05 GarboMuffin

in modern times you can use the Ask Before Closing Tab extension

GarboMuffin avatar May 23 '24 07:05 GarboMuffin