<meta http-equiv="X-UA-Compatible" content="IE=9" >
void _browser_Navigated(object sender, WebBrowserNavigatedEventArgs e) { if (_browser.Document != null) { if (_browser.Document.GetElementsByTagName("head").Count > 0) { HtmlElement headTag = _browser.Document.GetElementsByTagName("head")[0]; HtmlElement metaIEDocMode = _browser.Document.CreateElement("meta"); metaIEDocMode.SetAttribute("content", "IE-9"); metaIEDocMode.SetAttribute("http-equiv", "X-UA-Compatible"); headTag.AppendChild(metaIEDocMode); } } }
<meta http-equiv="X-UA-Compatible" content="IE=9" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)