Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone! I have this script
<html>
<head>
<script>function create_form{document.write('<form ....some="" atributes=""><input type="text" name="user" id="user" /><input type="text" name="info" id="info" /><input type="submit" value="Submit" /></form>');}</script>
</head>
<body onload="create_form()">
</body></html>

I am currently using WebBrowser from Windows.Forms.
How do I automate my form submission?

Thanks!
Posted
Updated 11-Jun-10 5:50am
v3

1 solution

I guess you use the DOM on your browser control to find the submit button and press it. You could write a javascript function that does that, calling that is probably easier to do from the DOM in code.
 
Share this answer
 
Comments
dsfernandez 12-Jun-10 14:52pm    
Thank you Christian for a correct answer!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900