Jun 8, 2014

How to check the browser is IE or not using javascript

Generally while working with some share point functionalities there will be need of checking the type of broswer.

Especially the functionalities like export to excel. Calling default 'Export Excel' feature in our custom code needs this browser check.

This is the java script code to check this

if (navigator.appName == "Microsoft Internet Explorer")
{
   alert('This is IE');
}
else
{
  alert('This is Not IE');
}

No comments:

Post a Comment