Discussion
What is the main function of the DOM (Document Object Model) ?
Answer: B
The DOM's main function is to represent the page so that JavaScript can manipulate it.
The Document Object Model represents an HTML document as a tree of objects (nodes) that scripts can read and change: adding elements, changing text and styles, and responding to events, all without reloading the page.
The structure is written in HTML, styling is done by CSS, and the browser loads the page; the DOM is the programming interface to the loaded page.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development