Hi folks,
Browser detection allows you to find out what browser your using.The following javascript function used to find the browser type.
There are two objects often used for this, the navigator.appName and navigator.appVersion objects. The first one returns the name of the browser, the second returns the version of the browser.
function findBrowser()
{
var browserName=navigator.appName;
if (browserName=="Netscape")
{
alert("Hi You are a Netscape User!");
}
else
{
if (browserName=="Microsoft Internet Explorer")
{
alert("Hi, Your are an Explorer User!");
}
else
{
alert("????");
}
}
}
Subscribe to:
Post Comments (Atom)
0 comments
Post a Comment