填写TWebBroswer德尔福7在网页上一个字段 [英] Fill a field on a web page in TWebBroswer Delphi 7

查看:81
本文介绍了填写TWebBroswer德尔福7在网页上一个字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个小程序来把我们的供应商的网站订单。我需要填写页面中的3场。千万甚至不需要提交吧。

I'm making a small program to place orders on our supplier's web site. I need to fill 3 fields in the page. Don't even need to "submit" it.

有没有什么简单的办法或任何组件,能做到这一点(preferably免费)

Is there any simple way or any component that could do that (preferably free)

感谢您!

推荐答案

假设你有一个名为'名'和式'文本'的输入字段,你可以叫

Suppose you have an input field with name 'name' and type 'text', you can call

WebBrowser1.OleObject.Document.GetElementByID('name').setAttribute('value', 'somename');

这篇关于填写TWebBroswer德尔福7在网页上一个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆