JavaScript navigator.appName Property
You are Here:
JavaScript navigator.appName Property
The navigator.appName
property returns the name of the browser.
Note: This property is read-only.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<script>
document.write("Browser CodeName: "+navigator.appName);
</script>
</body>
</html>
Syntax
navigator.appName
Return Value
Value | Explanation |
---|---|
string | Returns a string representing the name of the browser. Chrome, Firefox, Safari and IE11 returns"Netscape". IE 10 and earlier versions returns"Microsoft Internet Explorer". Opera returns"Opera". |
More Examples
Examples
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<script>
var txt = "";
txt += "<p>Browser Name: "+navigator.appName+"</p>";
txt += "<p>Browser CodeName: "+navigator.appCodeName+"</p>";
txt += "<p>Browser Version: "+navigator.appVersion+"</p>";
txt += "<p>Cookies Enabled: "+navigator.cookieEnabled+"</p>";
txt += "<p>Browser Language: "+navigator.language+"</p>";
txt += "<p>Browser Online: "+navigator.onLine+"</p>";
txt += "<p>Platform: "+navigator.platform+"</p>";
txt += "<p>Browser's Engine Name: "+navigator.product+"</p>";
txt += "<p>User-agent header: "+navigator.userAgent+"</p>";
txt += "<p>Java Enabled: "+navigator.javaEnabled()+"</p>";
document.write(txt);
</script>
</body>
</html>
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.