Frage

In Windows Phone 8 you could use:

(string)browser.InvokeScript("eval", "document.title.toString()"); 

to return page title from browser.

How would you go about doing this in the new WP8.1's API

War es hilfreich?

Lösung

For anyone looking for the answer I got it to work using

string[] args = { "document.title;" };
string foo = await webView.InvokeScriptAsync("eval", args);

Andere Tipps

InvokeScript is still supported in silverlight for windows phone 8.1

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top