Help with visual basics and HTML?

Tom Nolan

New member
So I am currently working on a visual basics project.
I need the program to log into a website. I have managed to get the username and password field sorted but i need to be able to click the 'Login' button.

Here is my VB code:

Code:
WebBrowser1.Navigate("**.com")
WebBrowser1.Document.GetElementById("emailAddress").SetAttribute("Value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pswd").SetAttribute("Value", TextBox2.Text)

Here is the HTML code for the login button:

Code:
<input type="submit" onclick="return logInTBLocal();" style="height: 23px; padding: 0pt 10px; font-size: 11px; line-height: 23px; border: 0pt none; margin: 0pt; width: auto;" class="btn1 btnLogin" value="Login" tabindex="11">

To click the button I need the buttons ID but it doesn't have one ?
Help please?
 
Back
Top