You can use navigator.appName and navigator.userAgent properties. The userAgent property is more reliable than appName because for example, Firefox (and some other browsers) may return the string “Netscape” as the value of navigator.appNam for compatibility with Netscape Navigator.
Note, however, that
navigator.userAgent may be spoofed, too – that is, clients may substitute virtually any string for their
userAgent. Therefore, whatever we deduce from either
userAgent should be taken with a grain of salt.
The output will return like this :