JavaScript: DOM Methods

By Xah Lee. Date: . Last updated: .

Here are the essential Document Object Model methods. Learn these and you will know 99% of practical DOM.

Get Elements

Element Attribute

get Node Name (Element Tag Name), Node Type, Node Value

Get Parent/Children/Sibling

Create New Nodes

{Insert, Remove, Replace} Nodes

Change Element's Text Content

{Add, Remove} Event Handler

BUY Ξ£JS JavaScript in Depth