Simple Browser Detection






Simple Browser Detection

A:hover {color: red; font-weight: bold}












if(navigator.appName == "Netscape") {
document.write("You're running a Netscape Browser")
}
else
if(navigator.appName == "Microsoft Internet Explorer") {
document.write("You're running Internet Explorer")
}
else {
}







Back

Simple Browser Detect


 






 




This script tells the visitor the Web browser they are
using, either Internet Explorer or Netscape.  If they use another
Browser it does nothing at all.  As is is will work but it is
basically useless.  I included it so you can be familiar with it
because it can be expanded.  For example if you have Microsoft base
products, you can alert them of features.  The same can be done with
Netscape.   The Message is highlighted in
yellow.






 
This script should be placed in the body of the HTML Document




<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

if(navigator.appName == "Netscape") {
document.write("You're running a Netscape Browser")
}
else
if(navigator.appName == "Microsoft Internet Explorer") {
document.write("You're running Internet Explorer")
}
else {
}
</SCRIPT>
 




 











if(navigator.appName == "Netscape") {
document.write("You're running a Netscape Browser")
}
else
if(navigator.appName == "Microsoft Internet Explorer") {
document.write("You're running Internet Explorer")
}
else {
}













© Copyright 2003 Ultimatephp.com






Wyszukiwarka

Podobne podstrony:
Browser Detection and Redirect
simple1
Simple State Machine Documentation
browser details
Detective Inspector Huss A Huss
browse article view (2)
browse map
SimpleCalculator csproj FileListAbsolute
SimpleFormatter
Phaser Metal Detector
browser info
Test Simple Viewer
browse archive
browse
browse articles?it y (2)
browse article pview (2)

więcej podobnych podstron