This sample demonstrates how the onsubmit event can be used to validate information on a Web form, by returning the selected value from the displayAnswer function.
[Right-click and choose View Source from the shortcut menu.]
© Microsoft Corporation. All rights reserved. Terms of use.