Blog Archives

How to Identify Browser Agent in JavaScript


Here is the Example code to identify the Browser Agent using Java script: <script type=”text/javascript”> alert(navigator); var browserName=navigator.appName; var userAgent = navigator.userAgent alert(browserName); if (browserName==”Microsoft Internet Explorer”){ alert(“Microsoft Internet Explorer”); alert(“Microsoft Internet Explorer Version : “+navigator.appVersion); alert(document.documentMode;); } else if

Tagged with: , , , , , , , , , , , ,
Posted in JavaScript

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 678 other followers

Calendar
April 2018
M T W T F S S
« Mar    
 1
2345678
9101112131415
16171819202122
23242526272829
30  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 254,939 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100