如何填充网页输入框啊这是网页源码div idformform methodpost actionProxy.php target_blan
如何填充网页输入框啊
这是网页源码
<div id="form">
<form method="post" action="Proxy.php" target="_blank">
<input type="text" class="url" name="Url" value="http://" onfocus="this.select()" /><input type="image" src="images/thiswontwork.png" style="float: left; margin-top: -92px; margin-left: 530px; position: relative;" />
<div class="smalltext">
<div align="center"><select name="Server" id="Server" style="height:20px;">
<option value='0'>** 01号网页代理 **</option>
<option value='1'>** 02号网页代理 **</option>
<option value='2'>** 03号网页代理 **</option>
<option value='3'>** VIP->VIP服务器 </option>
<option value='4'>** 05号网页代理 **</option>
<option value='5'>** 06号网页代理 **</option>
</select>
<script>
我想要把里里面的URL填充成HTTP://www.baidu.com
然后下面的列表框选则02号网页代理
WebBrowser1.Document.Form1.URL.Value = Text1
WebBrowser1.Document.Form1.Server.Option Value = 2
为什么不行呢,
把FORM1改成FORM也不行
求救 求救
[最优解释]
WebBrowser1.document.getElementById("form").value="abc"
WebBrowser1.document.getElementById("server").selectedIndex=1
[其他解释]
WebBrowser1.document.getElementById("form").value="abc"
改成
WebBrowser1.document.getElementById("url").value="abc"
OK
第二条是对的
谢谢
高手在民间
我爱csDN
