JS.DOM

The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree; with them you can change the document's structure, style, or content. Nodes can also have event handlers attached to them; once an event is triggered, the event handlers get executed.

Document Object Model

The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory. Usually that means JavaScript, although modelling HTML, SVG, or XML documents as objects is not part of the JavaScript language, as such.

Our Exceptional Solutions Image

Task 1

Write a JavaScript program to count and display the items of a dropdown list.

Read More
Our Exceptional Solutions Image

Task 2

Write a JavaScript program to remove items from a dropdown list.

Read More
Our Exceptional Solutions Image

Task 3

Write a JavaScript program to calculate the volume of a sphere.

Read More
Our Exceptional Solutions Image

Task 4

Write a JavaScript program to display a random image (clicking on a button) from the following list

Read More
Our Exceptional Solutions Image

Task 5

Write a JavaScript program to highlight the bold words of the following paragraph, on mouse over a certain link.

Read More
Our Exceptional Solutions Image

Task 6

Write a JavaScript program to get the width and height of the window (any time the window is resized).

Read More
Top