using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Web.WebView2.Core;
using Microsoft.Web.WebView2.WinForms;
namespace chome
{
public partial class FMTEST : Form
{
public FMTEST()
{
InitializeComponent();
}

private async void FMTEST_LoadAsync(object sender, EventArgs e)
{
webView21.Source = n
await webView21.EnsureCoreWebView2Async();
webView21.CoreWebView2.NewWindowRequested += CoreWebView2_NewWindowRequested;
}
private void CoreWebView2_NewWindowRequested(object sender,CoreWebView2NewWindowRequestedEventArgs e)
{
//e.NewWindow = webView22.CoreWebView2;
//在第二个webview2上面打开这个新窗口
webView22.Source = new Uri(e.Uri.ToString());
e.Handled = true;//禁止弹窗

}
}
}