The methods of the HTMLDocument object are listed here. For a complete list of HTMLDocument object members, see the HTMLDocument Members topic.

Public Methods

public method AppendChild (inherited from Node) Adds the specified node to the end of the list of child nodes, of this node.
public method CloneNode (inherited from Node) Creates a duplicate of this node.
public method CreateAttribute (inherited from Document) Creates an Attribute object with the specified name.
public method CreateCDATASection (inherited from Document) Creates a CDATASection object containing the specified data.
public method CreateComment (inherited from Document) Creates a Comment object containing the specified data.
public method CreateConditionalComment Creates a ConditionalComment object containing the specified data.
public method CreateDocumentFragment (inherited from Document) Creates a DocumentFragment object.
public method CreateElement (inherited from Document) Creates an Element object.
public method CreateEntityReference (inherited from Document) Creates an EntityReference object with the specified name.
public method CreateField Creates a Field object containing the specified data.
public method CreateProcessingInstruction (inherited from Document) Creates a ProcessingInstruction object with the specified name and data.
public method CreateRawHtml Creates a RawHtml object containing the specified data.
public method CreateScript Creates a Script object containing the specified data.
public method CreateTextNode (inherited from Document) Creates a Text object with the specified text.
public method GetElementById (inherited from Document) Gets the Element with the specified ID.
public method GetElementsByName Returns a HTMLCollection containing a list of all descendant elements that match the specified name.
public method GetElementsByTagName (inherited from Document) Returns a NodeList containing a list of all descendant elements that match the specified name.
public method HasChildNodes (inherited from Node) Gets a value indicating whether this node has any child nodes.
public method ImportNode (inherited from Document) Imports a Node from another document to the current document.
public method InsertBefore (inherited from Node) Inserts the specified node immediately before the specified reference node.
public method Load (inherited from Document) Loads the specified XML data into the current document.
public method Normalize (inherited from Node) Combines all adjacent text nodes in the full depth of the sub-tree underneath this node.
public method RemoveChild (inherited from Node) Removes specified child node.
public method ReplaceChild (inherited from Node) Replaces the child node oldChild with newChild node.
public method Save (inherited from Document) Saves the current XML document to the specified location.

See Also

HTMLDocument Object | DOM Namespace