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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing Field Values using Vbscript 1

Status
Not open for further replies.

ChrisBelzona

Programmer
Oct 25, 2000
137
GB
I have a asp page with a form which has various fields on it, I am trying to run vbscript that when a button is selected a msgbox will appear with the value of a field displayed.

Can anyone tell me what code to use to reference the field value (before any submit button is pressed)

Thanks

Chris
 
you can use an onBlur event for the form element --

refer to the field by this notation:
document.formname.fieldname.value
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top