Vidyalelo
JavaScript · Q18

Animation

Programming · JavaScript · question 18

Q18

What is the purpose of the preference method in a navigator?

A.
Set Browser preference
B.
Set Netscape preference
Answer
C.
Both Set Browser & Netscape preference
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The preference(name,value) method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value. Netscape only.