Check whether the browser is Internet Explorer or not using javascript

This Tutorial Has Been Viewed 840 Times.

This is a very simple method and the shortest way to find out whether the browser in which the webpage is loaded is IE or not

<script type="text/javascript">
var IE='\v'=='v';
if(IE) {
//ie code here
alert("This webpage has been loaded on an IE [Internet Explorer]")
}else
{
alert("This is not IE ha ha, You cannot make me a fool....")
}
</script>

LIVE DEMO

VN:F [1.9.13_1145]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

Check whether the browser is Internet Explorer or not using javascript, 9.0 out of 10 based on 1 rating

Incoming search terms:





You will also be interested in ,

Tags:

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in JavaScripts (47 of 80 articles)


A simple message ticker in which each message is associated with a unique URL, and clicking the button will take ...