Discussion
The following statements are about three important browser objects in JavaScript :
I. window object : The highest of all objects in the client-side JavaScript object hierarchy.
II. navigator object : A collection of information about the browser. Useful in browser sniffing.
III. document object : Provides access to the document being viewed
Which of the above statements is/are true ?
Answer: D
The answer is All (I), (II) and (III) above.
All three statements are true. The window object is the global, top-level object of client-side JavaScript, and the others are its properties. The navigator object describes the browser (name, version, platform), which is why it was used for browser sniffing. The document object gives access to the page being viewed, the entry point to the DOM.
Since every statement holds, the options naming only one are incomplete.
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