vb.net - change input value of hidden input in current document webbrowser -


here html

<input type="hidden" name="visited" value="aw5kzxgucghwpw==" /> 

vb.net

dim pageelements htmlelementcollection webbrowser1.document.getelementsbytagname("input")       each curelement htmlelement in pageelements         if curelement.getattribute("name") = "visited"             curelement.setattribute("value", "hhhhhhhhhhhhhhhhh")         end if 

i want change value of input on current document webbrowser user in next action new value

you can change input value javascript.

var input = document.getelementbyid('visited'); input.value ="your new value";

you need set id of hidden field


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -