自动执行html里的js
using mshtml;
IHTMLDocument2 HTMLDocument =(IHTMLDocument2) axWebBrowser1.Document;
mshtml.IHTMLWindow2 win = HTMLDocument.parentWindow;
string strScript = "onsubmit(3)";
win.execScript(strScript, "javascript");
或者
((mshtml.HTMLDocumentClass)axWebBrowser.Document).parentWindow.execScript( "func()", "JScript" );
posted @ 2007-05-23 12:18
佳文 阅读(673)
评论(0) 编辑 收藏 所属分类:
C#网络编程