在WebBrowser控件中注入Javascript脚本,下面代码string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.getElementsByTagName_r("head")[0]; HtmlElement scriptEl = browserCtrl.document.create_rElement_x_x("script"); l