I need some help please.
I am trying to make a redirect script that sniffs out NS4, NS6, IE4+ and Opera. It also needs to find that NS4 and NS6 are different and send them to different urls.
I tried a keyword search here, but it seems to be offline.
Here is what I have so far but it sends NS4 and NS6 to the same place. (or at least it did until NS6 went belly up on me...now NS6 gives me the appcomps.dll fault)
*/
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 4+
if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("ns4.htm"
//if NS 6+
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("ns6.htm"
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("ie.htm"
//Default goto page (NOT NS 4+ or NOT IE 4+ or NOT NS 5+)
else
window.location="svright.htm"
Thanks,
Tom
I am trying to make a redirect script that sniffs out NS4, NS6, IE4+ and Opera. It also needs to find that NS4 and NS6 are different and send them to different urls.
I tried a keyword search here, but it seems to be offline.
Here is what I have so far but it sends NS4 and NS6 to the same place. (or at least it did until NS6 went belly up on me...now NS6 gives me the appcomps.dll fault)
*/
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 4+
if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("ns4.htm"
//if NS 6+
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("ns6.htm"
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("ie.htm"
//Default goto page (NOT NS 4+ or NOT IE 4+ or NOT NS 5+)
else
window.location="svright.htm"
Thanks,
Tom