Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

Browser Detection In JavaScript

 by Mahak Gupta on Jan 23, 2012

We can Detect the visitor's browser with the help of Navigator Object In JavaScript.
Comments: 0 Views: 1088 Printable Version 
We can Detect the visitor's browser with the help of Navigator Object In JavaScript.

Ex:


<html>
<body>
<div id="browserdetection"></div>

<script type="text/javascript">

x = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
x+= "<p>Browser Name: " + navigator.appName + "</p>";
x+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
x+= "<p>Browser Version: " + navigator.appVersion + "</p>";

document.getElementById("browserdetection").innerHTML=x;

</script>

</body>
</html>


Output:

juhi.png

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor

 Blogger's Profile
Age: Not Available
Location:
Title: Developer
Joined: May 09, 2010
Education: Master's Degree
 More Blogs from this Blogger
No record available
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.