Vidyalelo
JavaScript · Q23

Document Object Model And Event Handling

Programming · JavaScript · question 23

Q23

The length property belongs to which of the following objects?

A.
Window
B.
Element
C.
History
Answer
D.
Document

Answer: Option C

Solution

Answer: Option C
Solution:
The length property of the History object specifies the number of elements in the browsing history list, but for security reasons scripts are not allowed to access the stored URLs.