Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Text boxes through vbScript

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
How can I modify the value of text boxes through vbScript?
 
Hi,

If you are working in an asp page, the easy way to do this is:

response.write(&quot;<input type'text' name='txt1' value='&quot; & ASP_VARIABLE_HERE & '>&quot;)

Otherwise you'll have to use a form object and call the name of the form and the value paramater. For example,

document.MainForm.TextEntryBox.Value = &quot;foobar&quot;

Hope this helps!

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top