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 674 other followers

Calendar
March 2019
M T W T F S S
« Jan    
 123
45678910
11121314151617
18192021222324
25262728293031
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
  • 299,702 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100