DOM Sample: Create Form
This sample uses the createElement and appendChild methods to add button and text controls to the document. Click the Create Element button to add a FIELDSET, LEGEND, button control, and text control to the document. An onclick event handler is added to the button control and, when clicked, invokes a function that replaces the entire node with the value of the text control.
© 1999 Microsoft Corporation. All rights reserved. Terms of use.