Get html phone window contents

Hi, I asked for an alternative for a Windows phone to get the HTML content of a webpage like this in wpf

var doc = (HTMLDocument)webBrowser2.Document; var head = doc.getElementsByTagName("head").Cast<HTMLHeadElement>().First(); var script = (IHTMLScriptElement)doc.createElement("script"); //script.src = @"getSelectedText.js"; 

so I would add a javascript script to my html that was already displayed in the browser I find the .savetostring browser, but it returns a string, not html I did not find support in advance thanks

+4
source share
1 answer

You can load HTML through WebClient , for example, enter JavaScript and display the result in WebBrowser using the NavigateToString method.

0
source

All Articles