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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Block alerts

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

Block alerts

Post by thefunkyjoint »

Hi,

Is there a way to block any alert javascript windows generated by an open url ?

Thanks
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Block alerts

Post by salvadordf »

Hi,

Use TChromium.OnJsdialog. Set suppressMessage to True and Result to False if you want to suppress the JS message.

Alternatively, the JSDialog demo (inside the JavaScript directory) shows how to use custom JavaScript windows.
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Block alerts

Post by thefunkyjoint »

Thank you ! :D
Post Reply