Page 1 of 1

Supress JS dialogs

Posted: Tue Jan 05, 2021 5:18 pm
by thefunkyjoint
Hello,

How can i totally suppress this kind of alert / confirmations, so it will never show up ?

Thanks
Screen Shot 2021-01-05 at 14.13.48.png

Re: Supress JS dialogs

Posted: Tue Jan 05, 2021 7:15 pm
by salvadordf
Yes you can.

Use the TChromium.OnBeforeUnloadDialog event and set the "Result" parameter to TRUE.

Read this for more information about that event :
https://magpcss.org/ceforum/apidocs3/pr ... ndler.html

Re: Supress JS dialogs

Posted: Tue Jan 05, 2021 7:28 pm
by thefunkyjoint
Great, thank you very much ! :)