Have you tried to follow this example on MSDN?
WebBrowser.InvokeScript Method (String, Object[])[
^]
Some times it helps to go back to basics and then add on more complexity.
You have to modify the JavaScript method, though.
<html>
<head>
<script type="text/javascript">
function JavaScriptFunctionWithParameters(message)
{
outputID.innerHTML = "JavaScript function 'called: " + message + ".";
}
</script>
</head>
<body>
Hello from HTML document with script!
</body>
</html>
Make sure that your document finished loading before you invoke the Java script.
You could try to add this meta data inside the <head> tag.
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
I think the WebBrowserControl defaults to IE7 otherwise.
If I remember correctly you also need to add your application to the registry in order to enable IE9.
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"WDExpress.exe"=dword:0000270f
"devenv.exe"=dword:0000270f
"AcroRd32.exe"=dword:0000270f
"<Yourapplication>.exe"=dword:0000270f
Can't remember exactly where I found the information about this, but I think it was Stack Overflow.
Here is a similar link
Regarding IE9 WebBrowser control[
^]