Re: Detekce browseru

From: Spock (spock@bfs.cz)
Date: 01. 04. 2001, 16:16 CEST


>> ... Potrebuju jenom: kdyz IE tak ie.html a kdyz NN tak
>> nn.html. Diky predem -=MpH=-

>Treba takhle (jen jsem to ted nasel na wsabstract.com - nevim, jestli funguje , ):
> ...
>var n=navigator.appName
>var ns=(n=="Netscape")
>var ie=(n=="Microsoft Internet Explorer")
>if (ns)
>location="page1.htm"
>else if (ie)
>location="page2.htm"

a pokud by ti slo o detekci 4+ verzi, pak staci:

if(document.all) location='ie4plus.html';
else if(document.layers) location='nn4plus.html';
else location='ostatni.html';

bye, spock.



This archive was generated by hypermail 2.1.2 : 04. 09. 2001, 06:15 CEST