The Confirm widget has two public methods: reset and validate.
Use the reset method if you want to set the validation widget back to its default state. For example:
<input type="button" value="Reset" onclick="ConfirmWidgetObject.reset();">
Use the validate method if you want to validate the widget from some other object or event. For example:
<input type="button" value="Validate the field" onclick="ConfirmWidgetObject.validate();">