Welcome Guest Search | Active Topics | Sign In | Register

webview property innertext it's only to read Options
gabrielcastillo
Posted: Thursday, May 10, 2018 5:12:02 PM
Rank: Newbie
Groups: Member

Joined: 5/10/2018
Posts: 3
i need to set the value of a text box, so i try to use the example code

EO.WebBrowser.DOM.Document doc = WebView1.GetDOMWindow().document;
doc.getElementById("username").innerText = user_name;


but, the "innerText" its only get propertie
eo_support
Posted: Thursday, May 10, 2018 5:15:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

You need to use WebView.EvalScript to do that. See here for more details:

https://www.essentialobjects.com/doc/webbrowser/advanced/js.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.