πŸ“Š JavaScript
Q. How to detect the name of the client’s browser?
  • (A) navigator.appName
  • (B) browser.name
  • (C) client.navName
  • (D) window.appName
πŸ’¬ Discuss
βœ… Correct Answer: (A) navigator.appName

Explanation: appName Returns the name of the browser. Example:

if(navigator.appName == "Netscape")
{
alert('For proper functioning of the application, please use Google Chrome or Mozilla Firefox browsers');
}

Explanation by: Yogesh
appName Returns the name of the browser. Example:

if(navigator.appName == "Netscape")
{
alert('For proper functioning of the application, please use Google Chrome or Mozilla Firefox browsers');
}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
297
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
98%
Success Rate