Page 1 of 1

Block alerts

Posted: Mon Feb 19, 2018 5:16 pm
by thefunkyjoint
Hi,

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

Thanks

Re: Block alerts

Posted: Mon Feb 19, 2018 5:29 pm
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.

Re: Block alerts

Posted: Mon Feb 19, 2018 6:55 pm
by thefunkyjoint
Thank you ! :D