procedure SubmitForm(Document:IHTMLDocument2); var i:Integer;Form:IHTMLFormElement; begin for i:=0 to Document.forms.length -1 do begin Form:=Document.forms.item(i,i) as IHTMLFormElement; Form.submit(); exit; end; end;提交第一个Form使用方法 SubmitForm(WebBrowser1.Document as IHTMLDocument2);
var i:Integer;Form:IHTMLFormElement;
begin
for i:=0 to Document.forms.length -1 do
begin
Form:=Document.forms.item(i,i) as IHTMLFormElement;
Form.submit();
exit;
end;
end;提交第一个Form使用方法
SubmitForm(WebBrowser1.Document as IHTMLDocument2);