Your
approach is correct. Here is a detailed example:
GuiXT
Script:
Control
(10,1) (17,62) progid="file:///c:\guixt\scripts\test1.html"
name="html1"
Pushbutton
(19,1) "Show textarea content"
process="show_textarea.txt"
This
displays your HTML page"test1.html" with the
<textarea> tag together with a pushbutton.
Enter
some text and click the pushbutton. The InputScript
"show_textare.txt" is as follows:
CallVBS
txt = element_value "ContactName"
"&V[html1]"
Message "&V[txt]"
Return
and
the VBScript function:
Function
element_value(id,obj)
'
return DOM element value
element_value = obj.document.getElementById(id).value
End
Function |