<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Document Object Model - Page 20 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Document_Object_Model&amp;p=19">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Document_Object_Model&amp;p=21">3.Next</a>
</p>
<p>languages. Common tasks include navigating the tree, adding, removing, and modifying nodes, and getting and setting the properties of nodes. The DOM API provides a set of methods and properties to perform these operations, such as <code>getElementById</code>, <code>createElement</code>, <code>appendChild</code>, and <code>innerHTML</code>.<syntaxhighlight lang="javascript">// Create the root elementvar root = document.createElement("root");</syntaxhighlight></p>

<p>// Create a child elementvar child = document.createElement("child");</p>

<p>//</p><p>
<a accesskey="1" href="page.php?w=Document_Object_Model&amp;p=19">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Document_Object_Model&amp;p=21">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
