JavaScript |
> |
<SCRIPT LANGUAGE="JavaScript">
<!-- // Göm koden
var BrwsrName = navigator.appName ;
var BrwsrVers = parseInt(navigator.appVersion) ;
if (BrwsrName == 'Netscape') {
document.write("Du använder Netscape!<br>");
}
else if (BrwsrName == 'Microsoft Internet Explorer') {
document.write("Du använder Explorer!<br>");
}
else {
document.write("Du använder en annan browser!<br>");
}
if (BrwsrVers > 4) {
document.write("Du har en väldigt ny browser<br>");
document.write(navigator.appVersion);
}
else {
document.write("Du har en gammal browser???<br>");
document.write(navigator.appVersion);
}
//-->
</SCRIPT>
Prova här...