replaceChild

DOM replaceChild()

The replaceChild () method replaces a child node of the specified node with another node.

DOM insertbefore()

DOM insertbefore()

The insertBefore () method inserts a node as a child, just in front of an existing child you specify.

DOM appendChild()

DOM appendChild()

The appendChild () method adds a node to the end of the child elements of a specified parent node.

createElement

DOM createElement()

The JavaScript createElement () method creates a node of the specified name. This method is a widely used method.

HTML DOM classList

HTML DOM classList

Adding and deleting classes should be one of the most common tasks for JavaScript and DOM jobs.

JavaScript addEventListener()

JavaScript addEventListener()

Sometimes, when you create a web page, you may want to execute a piece of code when someone triggers a particular type of activity on your website

JavaScript delta

JavaScript delta

deltaMode The JavaScript deltaMode property returns a number that represents the unit of the shift values. 0 = pixels 1 = lines 2 = pages Syntax: var deltaMode = event.deltaMode […]