With the TEdgeBrowser.OnNewWindowRequested event, I can obviously tell that a new window is about to open, but how can I capture the output to my own custom TForm with a second TEdgeBrowser component?
The 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 property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With