I\'ve tried this:
string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName(\"head\")[0]; HtmlElement scriptEl = browser
i use this:
webBrowser.Document.InvokeScript("execScript", new object[] { "alert(123)", "JavaScript" })