Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

onclick="document.forms[0].submit();" How to click this Button on vb.net

$
0
0
Hi to all !

Can you help me solve this problem?
I have this code but the problem is when i click the button it doesn't response

here's the code
Code:

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
     
        WebBrowser1.Document.GetElementById("UI_ADMIN_USERNAME").SetAttribute("value", TextBox4.Text)
        WebBrowser1.Document.GetElementById("UI_ADMIN_PASSWORD").SetAttribute("value", TextBox5.Text)
        WebBrowser1.Document.GetElementById("document.forms[0].submit();").InvokeMember("onclick")
    End Sub

Here's the html button
Code:

<div onclick="document.forms[0].submit();" onmouseout="fFNN(this)" onmouseover="fFOB(this)" style="position: absolute; width: 54px; height: 20px; top: 468px; m…rgb(255, 255, 255); font-style: normal; font-weight: normal;"></div>
Thanks in advance

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>