Every code example for submitting a form inside a WebBrowser control I have seen so far, hardcodes the WebBrowser.Document.Forms[0].InvokeMember()
parameter as "submit"
.
Must this parameter always be "submit"?
If so, then why is it a parameter?
If not, what are the rules for specifying which string to put there? Is it dependent on the HTML of the page being accessed?
Update 1: The documentation for InvokeMember() clearly shows an example of using a value other than "submit". So, at least I got the answer: No.
But I still don't understand when should I use "submit" and when should I use "moveRow": In the web page I am handling via "submit" there is no mention of that string, yet it works perfectly. Where is that implied "submit" hiding in the web page?
Update 2: Ah! I think I am beginning to get it: It's a Javascript built-in method. And thus implied for any DOM Form element.
An authoritative answer is most appreciated.