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
September 2018
M T W T F S S
« Mar    
 12
3456789
10111213141516
17181920212223
24252627282930
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
  • 276,396 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100