如何将 TEdgebrowser 弹出窗口 window 重定向到我自己的表单?

How can I redirect a TEdgebrowser popup window to my own form?

通过 TEdgeBrowser.OnNewWindowRequested 事件,我可以清楚地知道一个新的 window 即将打开,但是我如何使用第二个 TEdgeBrowser 组件将输出捕获到我自己的自定义 TForm?

TEdgeBrowser.OnNewWindowRequested event handler has a parameter named Args of type TNewWindowRequestedEventArgs, which implements Edge's ICoreWebView2NewWindowRequestedEventArgs interface. You can call its put_NewWindow() method, providing it with the ICoreWebView2 interface of the desired browser window, which you can get from the TEdgeBrowser.DefaultInterface 属性.