salvadordf / WebView4Delphi

WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
https://www.briskbard.com/forum/
MIT License
280 stars 56 forks source link

about DefaultScriptDialogsEnabled #41

Closed wakswaks closed 1 year ago

wakswaks commented 1 year ago

如果不设置DefaultScriptDialogsEnabled:=false,OnScriptDialogOpening事件似乎不起作用,但是在uWVBrowser中没有这个属性,是否需要单独加上这个属性?谢谢!

salvadordf commented 1 year ago

Add the following code line in the TWVBrowser.OnAfterCreated event : WVBrowser1.DefaultScriptDialogsEnabled := False;

Then the TWVBrowser.OnScriptDialogOpening events will be triggered.

Please, use our forum for more questions. Please use an online translator to write in English or Spanish.