Vidyalelo
HTML · Q46

Basic HTML

Programming · HTML · question 46

Q46

Which property is used to detect the browser’s user agent and code based on the pertinent cases?

A.
navigator.userAgent
Answer
B.
navigator.user
C.
navigator
D.
return

Answer: Option A

Solution

Answer: Option A
Solution:
An old strategy was to look at the property navigator.userAgent to detect the browser’s user agent and code based on the pertinent cases.