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

Reset Form with Vbscript

Status
Not open for further replies.

RClarkeJr

Programmer
Nov 10, 2004
20
US
When a user completes the form, they are prompted with a msgbox whether they would like to start a new entry. Without using the reset button, I would like to use vbscript to reset the controls. I have tried to call the OnClick event but it was unsuccessful.

Thanks in advance.
 
>...they are prompted with a msgbox whether they would like to start a new entry. Without using the reset button, I would like to use vbscript to reset the controls.
When the answer to the message box is "yes", follow it with a line like this (with the form's name as "formname", say):
[tt] document.formname.reset[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top