Unfortunately 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... ");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…