PDA

View Full Version : detecting NS4 and NS6?


vladimir
01-03-2002, 04:09 AM
how to detect NS4 (and lower) and NS6 (and above) and to redirect them to different pages?

scoutt
01-03-2002, 02:20 PM
try this

<SCRIPT LANGUAGE="JavaScript">
If (navigator.appName == "Microsoft Internet Explorer")
document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=msie.html">');
Else
document.write('<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=netscape.html">');
</SCRIPT>

mighty_muke
01-03-2002, 02:35 PM
Can you use something like the following to detect the netscape version?

<SCRIPT LANGUAGE="JavaScript">
if ((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) < 5 )) {
}
</SCRIPT>

Tom
01-03-2002, 02:56 PM
<Script><!-- A1 Javascripts-http://www.A1javascripts.com --><!--
if (document.all) //IE4,5
loc = 'Your-IE4,5-choice.html'
else if (document.layers) //NS4
loc = 'Your-NS4-choice.html'
else if (document.getElementById) //NS5
loc = 'Your NS5 Choice.html'
else if (document.images) //NS3,IE4
loc = 'Your-NS3,IE4-choice.html'
else //NS2,IE3
loc = 'Your-NS2,IE3-choice.html'
window.location = loc;
//--></Script>



is the best I can do.:D

Jon Hanlon
01-03-2002, 06:31 PM
how to detect NS4 (and lower) and NS6 (and above) and to redirect them to different pages?


NS6 (and above) ???!??!!!

Do you honestly expect to see a NS7 (or NS8)?

There are heaps of browser sniffers around, do a web search on 'browser sniffer'.

vladimir
01-03-2002, 07:35 PM
thank you friends ...

i will try your suggestions :)

p.s.
no I did not think on NS7 or NS8 ...
i think on 6.0, 6.1 and 6.2 ...
(sorry for english)

thanx once again