Document Object Model: Difference between revisions

Content deleted Content added
m Reverted edit by عصام ابو زين اليافعي (talk) to last version by Finlay McWalter
Tags: Reverted extraneous markup
Line 116:
</syntaxhighlight>
 
{{IPAc-en|}}<ref></ref>== Manipulating the DOM tree ==
The DOM tree can be manipulated using JavaScript or other programming 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 element