javascript
Brief description  about Online courses   join in Online courses
View Dinesh  Damodaran 's Profile

Error in displaying navigator.appName!!

Dear all,

I have used the following code to display the browser name.

<SCRIPT LANGUAGE = "javascript">
alert(navigator.appName)
</SCRIPT>

It shows correctly in IE as "Microsoft Internet Explorer". But in Firefox and Chrome this code displays "Netscape". Why is it so?
Asked by Dinesh Damodaran | Jun 18, 2012 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Dinesh Damodaran,

Netscape is an open source webbrowser.Firefox and chrome are the extended version of netscape, thats why it displays netscape.
Jun 21, 2012