Avatar of MitchellVII
MitchellVII
Flag for United States of America

asked on 

How to do refer to HTML elements in vbScript?

Hi,

I am conversant in Visual Basic from working on MS Access and just learning VBScript (which seems quite similar).

In Visual Basic, if I want to refer to a control on a form by name, I first establish the Form as an object, then use the name like so:

myForm.controls('myControl").value = "Hello World!"

Let's say that I have a Function in VBScript where I want to pass the id of an input element and then asign a value to it.  What wording would I use?

Function chgValues(strID)
Scripting LanguagesASP

Avatar of undefined
Last Comment
MitchellVII

8/22/2022 - Mon