在C#中用WebBrowser控件,执行网页中的JavaScript脚本
mshtml.IHTMLDocument2 document = (mshtml.IHTMLDocument2)axWebBrowser1.Document;
mshtml.IHTMLSelectElement sd= (mshtml.IHTMLSelectElement)document.all.item("sd", null);
bigarea.value = "43";
mshtml.IHTMLWindow2 win = (mshtml.IHTMLWindow2)document.parentWindow;
win.execScript("__doPostBack('ssss','')", "javascript");
发表时间: 2005-05-26 14:25
[ 此贴被XChinux在2005-08-13 09:09重新编辑 ]