在html中写入内容,并添加js private void btnTestJs_Click(object sender, EventArgs e) { this.webBrowser1.Navigate("about:blank"); this.webBrowser1.Document.Write("testBody");//make the this.webBrowser1.Document.Body is not null HtmlElement he = th
一.实现WebBrowser内部跳转,阻止默认打开IE 1.引用封装好的WebBrowserLinkSelf.dll实现 public partial class MainWindow : Window { private WebBrowser webBrowser = new WebBrowser(); public MainWindow() { InitializeComponent(); this.webBrowser.LoadCompleted += new LoadCompletedE