I can inject JavaScript in WebBrowser control in C# windows form by this link
How to inject JavaScript in WebBrowser control?
But I can't do this in WP7, please help me.
See Question&Answers more detail:osI can inject JavaScript in WebBrowser control in C# windows form by this link
How to inject JavaScript in WebBrowser control?
But I can't do this in WP7, please help me.
See Question&Answers more detail:osUnfortunately WebBrowser.Document
is not available on WP7. But you can create and call a JavaScript function using InvokeScript
. Have a look over here where I describe how.
In short: you don't use .Document
and C# but create a piece of JavaScript instead. You then call eval
with this script as parameter to invoke it. Like this:
webBrowser1.InvokeScript("eval", " ...code goes here... ");