Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input Box Value
I thought I had asked this before, but cannot find the answer again, so, I will ask the question again (sorry about this).

I am trying to find the value stored in an INPUT field on a web page. I can get to the field and change the value, but I cannot find the original value.

Here is the code I am using to change the value, what am I missing to get the value.

MSHTML.IHTMLElement el=htm("INPUT" "txtAddress1" "" "Internet Explorer" "2/4" 9 0x121)
el.innerText = "carl"

Thanks for your wonderful help as always.
To get input box value is used "value" attribute, not inner text.

str s=el.getAttribute("value" 0)

Forum Jump:

Users browsing this thread: 1 Guest(s)