I have read that page before, and it's all fine and dandy, but it doesn't help me. I don't know how to write JavaScript. All I was looking for was something to direct everything but the browsers I specified to a different page. Example:
Code:
browser = navigator.appName
ver = navigator.appVersion
version = ver.substring(0,1)
if (browser=="Internet Explorer") {
if (version<="5.5")
document.location.href="index2.html"
}
if (browser=="Netscape") {
if (version<="7.2")
document.location.href="index2.html"
}
if (browser=="Firefox") {
if (version<="1.0")
document.location.href="index2.html"
}
if (browser=="Opera") {
if (version<="7.1")
document.location.href="index2.html"
}
This works just fine for me, except I need something else that says "If the browser is anything but IE 5.5 SP2, Netscape 7.2, Firefox 1.0, or Opera 7.1, send it to thispage.html".
Yes, yes, I know, "Don't use browser detection", etc etc. However, I WANT to use it. It's simple for me to change since I don't know Javascript, and it seems to work with the 2 browsers I am testing it on (IE 6 and NS 4.79).
So is there any way to have the script do what I want, keeping in mind that I don't want to deal with object detection at the moment? I want this to work first so Ihave something while I figure out a better way of doing it. Thanks
Bookmarks