I wanna know user's navigator name and alert it But Both in Firefox and Chrome the alert text is "Netscape" . Here is my javascript code :
var app=navigator.appName;
alert(app);
I wanna know user's navigator name and alert it But Both in Firefox and Chrome the alert text is "Netscape" . Here is my javascript code :
var app=navigator.appName;
alert(app);
You should be able to extract this information from navigator.userAgent
instead. Check out this jsFiddle.
The navigator object contains properties such as:
appCodeName
appName
appVersion
...
userAgent
vendor
and many others.
If you use chrome just type window.navigator in the console and you'll see all available fields.