I\'ve tried this:
string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName(\"head\")[0]; HtmlElement scriptEl = browser
You can always use a "DocumentStream" or "DocumentText" property. For working with HTML documents I recommend a HTML Agility Pack.