Here, the way to detect or to identify the type of internet browser whose visit our website.
Its sound like unpowerfull script. But if we smart, identifying visitor's browser is very usefull. Specially in Cascade Style Sheet (CSS) cases or in script function which not compatible for one browser to another one. Some scripts are ok in Internet Explorer but some scripts aren't ok in Mozzille Firefox, Opera, Konqueror or viceversa.
So, it's powerfull to prevent some unpredictable trouble like that.
If we write the script at the beginning part of page, it could direct all visitors to special page which compatible with the visitor's browser. We can use the below script and write to our page:
function detectBrowser()
{
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if (browser==”Netscape”)
{ location.href=”http://www.live.com”; }
else if (browser==”Microsoft Internet Explorer”)
{ location.href=”http://www.google.com/”; }
}
In abouve, the script detects visitor browser and identify it. If it is Netscape so the visitor will be fowarded to Live.com. If it is Internet Explorer so the visitor will be fowarded to Google.com. Of course, you can make many advanced creation for your own page.





Recent comments
3 hours 53 min ago
9 hours 10 min ago
9 hours 22 min ago
9 hours 28 min ago
14 hours 58 min ago
15 hours 39 min ago
15 hours 42 min ago
20 hours 57 min ago
21 hours 4 min ago
21 hours 24 min ago