private void test_Click(object sender, EventArgs e) { webBrowser1.AllowWebBrowserDrop = false; webBrowser1.IsWebBrowserContextMenuEnabled = false; webBrowser1.WebBrowserShortcutsEnabled = false; webBrowser1.ScriptErrorsSuppressed = true; var content = webBrowser1.Document.InvokeScript("GetStr", new String[] { "div2" }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)