Ron wrote:
>Come on people, what would one need to include in a web page to divert
>IE6 to a "upgrade to Arachne" page ?
This does more. Simply give the same destination i.e. window.location
for all JavaScript enabled browsers if you wish.
Have fun!
Jake
=====================================================================
<html>
<script language="JavaScript">
<!-- hide from non-JavaScript aware browsers
// browser detection with redirection to version-specific pages
var browser=navigator.appName;
var version=navigator.appVersion;
// Load page according to browser
function loadPage() {
// find which browser it is
if (browser.indexOf("Netscape") >= 0) {
// find which version
if (version.indexOf("3.") >= 0) {
window.location="nn3.htm";
}
if (version.indexOf("4.") >= 0) {
window.location="nn4.htm";
}
if (version.indexOf("5.") >= 0) {
window.location="nn5.htm";
}
if (version.indexOf("6.") >= 0) {
window.location="nn6.htm";
}
}
if (browser.indexOf("Microsoft") >= 0) {
// find which version
if (version.indexOf("3.") >= 0) {
window.location="msie3.htm";
}
if (version.indexOf("4.") >= 0) {
window.location="msie4.htm";
}
if (version.indexOf("5.") >= 0) {
window.location="msie5.htm";
}
if (version.indexOf("6.") >= 0) {
window.location="msie6.htm";
}
}
}
// stop hiding -->
</script>
<head>
<title>JavaScript Browser Detector</title>
</head>
<body onLoad="loadPage();">
<h3 align=center>Put links or page content here for non-JavaScript
browsers and the ones listed in the script if they have JavaScript
disabled.</h3>
</body>
</html>