I am using below code to inject javascript
HtmlElement head = _wb.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = _wb.Document.CreateElement("script"); mshtml.IHTMLScriptElement element = (mshtml.IHTMLScriptElement)scriptEl.DomElement; element.text = "function zoom(){document.body.style.zoom='150%';}"; head.AppendChild(scriptEl);
Now can anyone tell me how to remove the added child