If I have a text box on a web page like this
<input type="text" size=20 name="textbox" id=textbox">
How do I insert a value into the text box using vbscript?
Printable View
If I have a text box on a web page like this
<input type="text" size=20 name="textbox" id=textbox">
How do I insert a value into the text box using vbscript?
<input type="text" size=20 name="textbox" id=textbox" VALUE="Insert This">
whg
I need to do it with VBScript not by setting the value before hand. Using JavaScript it would be something like this.
document.FormName.TextBox.value = "Hello World";
<input type="text" size=20 name="textbox" id=textbox" VALUE="%varname&">
Shouldn't your:
document.FormName.TextBox.value = "Hello World";
Actually be:
document.FormName.TextBox.Text = "Hello World";
use
formname.textboxname.value ="XYZ" in any event..
Sudharshaan