网页关闭自动输入autocomplete="off"如何控制输入框
网页关闭自动输入autocomplete="off"如何控制输入框
off, 网页, autocomplete, quot, 自动
<INPUT type=hidden value=zh-CN name=hl><INPUT type=hidden
value=1 name=newwindow>
<INPUT class=lst title="密码"
maxLength=2048 size=38 value=密码 name=q autocomplete="off">
<INPUT class=lsb type=submit value="确定" name=btnG>
没有关闭自动输入用以下代码可以输入
关了之后就不行了,有什么办法可以实现输入
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
httpaddress = Left(WebBrowser1.LocationURL, 18)
If httpaddress = "http://www.bbb.com" Then
For i = 0 To WebBrowser1.Document.Forms("f").length - 1
If WebBrowser1.Document.Forms(Form_ID)(i).Name = "q" Then
WebBrowser1.Document.Forms(Form_ID)(i).Value = "lddd6"
End If
If WebBrowser1.Document.Forms(Form_ID)(i).Name = "btnG" Then
WebBrowser1.Document.Forms(Form_ID)(i).Click
End If
Next
End If
End Sub
那位老大帮忙解决一下,谢谢
[解决办法]
先
WebBrowser1.Document.getElementsByName("q")(0).autocomplete="on"
然后再按你以前的操作