Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Supress JS dialogs

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Supress JS dialogs

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4054
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Supress JS dialogs

Post 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
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: Supress JS dialogs

Post by thefunkyjoint »

Great, thank you very much ! :)
Post Reply