UI Close Detection

Explorer ,
Dec 06, 2021 Dec 06, 2021

Copy link to clipboard

Copied

Is there any way to detect the closing of the UI without disabling { closeButton: false } and adding a manually close button?

(for example, as onShow function works but in this case onClose)

 
TOPICS
Scripting

Views

46

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Dec 06, 2021 Dec 06, 2021
var w = new Window("dialog"); w.onClose = function () { alert("message"); } w.show();

Likes

Translate

Translate
Advocate ,
Dec 06, 2021 Dec 06, 2021

Copy link to clipboard

Copied

LATEST
var w = new Window("dialog");
w.onClose = function () {
    alert("message");
}
w.show();

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines