Q:

C# How invoke this Javascript In c#?

I want to invoke this javascript.
 //<BUTTON id="TestID" class="My_Test button small" type="submit"><SPAN class="account">By</SPAN></BUTTON>

How can I send this command without use the mouse an click the button on the form??
There is alott of invoke examples but I cant figure out how to make this click event trigger by code...

A:

If you want to automatically click that button, you would want to take advantage of the browser's JavaScript engine, rather than doing anything with C#.
For instance, you can add a <script> tag at the top of that with:
<script type="text/javascript">
    document.getElementById("TestID").click();
</script>

