How to supress JavaScript Confim dialog?
Posted: Wed Feb 28, 2018 12:20 pm
Hello,
using CEF4Delphi (Delphi 10.2 Tokyo) as shown in the demo "JSWindowBindingSubProcess" (GlobalCEFApp.BrowserSubprocessPath := 'SubProcess.exe';) and loading a page leads us to a JavaScript Confim dialog, if we click on a button in this page where JavaScript code is executed and a new window should be opened. Then we get a JavaScript Confim dialog with the question "Is it OK to leave/reload the page?"
Is there any way to supress the JavaScript Confim dialog?
We did try OnJsDialog without success...
May it is possible to set GlobalCEFApp.JavaScriptFlags in the dpr-file? If yes, what value(s) would be the right one(s)?
Thank's in advance!
using CEF4Delphi (Delphi 10.2 Tokyo) as shown in the demo "JSWindowBindingSubProcess" (GlobalCEFApp.BrowserSubprocessPath := 'SubProcess.exe';) and loading a page leads us to a JavaScript Confim dialog, if we click on a button in this page where JavaScript code is executed and a new window should be opened. Then we get a JavaScript Confim dialog with the question "Is it OK to leave/reload the page?"
Is there any way to supress the JavaScript Confim dialog?
We did try OnJsDialog without success...
May it is possible to set GlobalCEFApp.JavaScriptFlags in the dpr-file? If yes, what value(s) would be the right one(s)?
Thank's in advance!