[RESOLVED] little help neededHi, how can i auto click the submit button from a web page. Coding
Hi, how can i auto click the submit button from a web page. Coding of the button is ..
Code:
Code:
Code:
<input type="button" value="Send" style="width:10em;" onClick="javascript:checkform()">
Any idea
The following code is not working for me
Code:
Private Sub WebBrowser1_DownloadComplete()
Set Doc = WebBrowser1.Document
'~~> Find the "Submit Button"
For Each GenElmt In Doc.frames.Document.All
If UCase$(GenElmt.tagName) = "INPUT" Then
Set InptElmt = GenElmt
If UCase$(InptElmt.Value) = "Send" Then
'~~> Click Button and then exit the loop
InptElmt.Click
Exit For
End If
End If
Next
End Sub
Re: little help neededHi, how can i auto click the submit button from a web page. Cod
You just need to do,
Code:
webbrowser1.navigate "javascript:checkform()"
That's assuming you've already naviagted to the page. Also assuming you've filled in the relavent input fields.
Re: [RESOLVED] little help neededHi, how can i auto click the submit button from a we
Thanks you :) 1+ rep 4 you