Browser Detection and Redirect





Browser Detection and Redirect
A:hover {color: red; font-weight: bold}















Back to
Index

Browser Detection and
Redirect

 









 





This script detects the visitors' browser
and redirects them to the appropriate page.  For Example if the
visitor's browser is Netscape the visitor will be redirected to a Netscape
"Friendly" page and the same for Internet Explorer.  If a different
browser is detected they're sent to a generic Home page.  Link
highlighted in yellow.





Place script in the body of the HTML Document.




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


if(navigator.appName == "Netscape") {
window.location="homenc.htm"
}
else
if(navigator.appName == "Microsoft Internet Explorer") {
window.location="homeie.htm"
}
else { window.location="homeg.htm"

}

</SCRIPT>

 




 
Script




 



if(navigator.appName == "Netscape") { window.location="homenc.htm" } else if(navigator.appName == "Microsoft Internet Explorer") { window.location="homeie.htm" } else { window.location="homeg.htm" }








© Copyright 2003
Ultimatephp.com





Wyszukiwarka

Podobne podstrony:
6 6 Detection and Identification of Drugs; Summary
2009 07 Weaving the Web Browser Synchronization and More with Mozilla Weave
Advances in the Detection and Diag of Oral Precancerous, Cancerous Lesions [jnl article] J Kalmar
Simple Browser Detection
Implementing and Detecting an ACPI BIOS Rootkit
browser version redirect
2005 11 Discovery Scripts Bash Based Hardware Detection for Pci and Usb
2005 11 Discovery Scripts Bash Based Hardware Detection for Pci and Usb
Using Verification Technology to Specify and Detect Malware
mrs dsilvas detective instincts and the shaitan of calcutta
Intrusion Detection for Viruses and Worms
A protocol for polymerase chain reaction detection of Enterococcus faecalis and Enterococcus faec
EV (Electric Vehicle) and Hybrid Drive Systems
Madonna Goodnight And Thank You
Found And Downloaded by Amigo
2002 09 Creating Virtual Worlds with Pov Ray and the Right Front End
Functional Origins of Religious Concepts Ontological and Strategic Selection in Evolved Minds
Found And Downloaded by Amigo

więcej podobnych podstron