Adds an element to another element's subtree.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The HTML Document Object Model (DOM) enables you to alter the run-time contents of an HTML file in a number of ways. Use to add new elements to an existing document, or to move an element on the page.
If an element has already been parented, appending an element to another element will automatically remove that element from its previous parent.
The following code example creates a new hyperlink using the CreateElement method and adds it to end of a page using AppendChild on the BODY element. The example requires that your application contains a WebBrowser control named WebBrowser1.