Page 1 of 1
Javascript per site
Posted: Tue Aug 13, 2024 11:13 am
by KenS
Can javascript be switched off on a site by site basis? Looked at documentation but couldn't find anything.
I have seen a few browsers offer it, but it doesn't work.
Ken
Re: Javascript per site
Posted: Tue Aug 13, 2024 2:56 pm
by salvadordf
Hi,
BriskBard can disable JavaScript in the configuration window. Select the General tab and select "Disabled" in the Javascript option.
CEF4Delphi browsers can also disable JavaScript by setting TChromiumCore.Options.JavaScript to STATE_DISABLED.
WebView4Delphi browsers can disable JavaScript with the TWVBrowserBase.ScriptEnabled property.
Re: Javascript per site
Posted: Mon Aug 19, 2024 6:48 am
by KenS
Is that on a site-by-site basis? As in have JS on for one site but off for others?
If so, then I can't see how to
Ken
Re: Javascript per site
Posted: Tue Aug 20, 2024 6:18 am
by salvadordf
No, sorry. BriskBard only has a global setting to disable JavaScript.
You can disable it whenever you want in your application if you use CEF4Delphi or WebView4Delphi.