Username:   Password:  

Test if browser is Internet Explorer in Javascript

function isIE {
	var name = 'MSIE';
 
	var agent = navigator.userAgent.toLowerCase();  
 
	return (agent.indexOf(name.toLowerCase()) > - 1);
}

This function tests, if the browser that is viewing the site, is some version of the internet explorer

Tags

internet explorer javascript user agent