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.

How to disable JavaScript "on the fly"?

Post Reply
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

How to disable JavaScript "on the fly"?

Post by gresaggr »

Hello.
Is it possible to change enable/disable Javascript support after already build browser in runtime (not at GlobalCEFApp init)?
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to disable JavaScript "on the fly"?

Post by salvadordf »

I just uploaded a new CEF4Delphi version to GitHub with a couple of new TChromium properties.

Try setting TChromium.JavascriptEnabled to FALSE at runtime with the latest CEF4Delphi version.
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

Re: How to disable JavaScript "on the fly"?

Post by gresaggr »

Super! Thank you!
Post Reply