1.

Which property is used to detect the browser’s user agent and code based on the pertinent cases?(a) navigator.userAgent(b) navigator.user(c) navigator(d) returnI have been asked this question in final exam.My question is taken from Compatibility Libraries topic in chapter HTML Fundamentals of HTML

Answer»

Right option is (a) navigator.userAgent

For explanation I would SAY: 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.



Discussion

No Comment Found

Related InterviewSolutions