<html>

  <head>
    <meta http-equiv="content-type" content="text/html;chars-
       et=iso-8859-1">
    <title>DHTML for the WWW | Detecting the Operating Syste-
       m</title>
  </head>
  <body>
<script>
document.write('<b>This browser\'s designation is:</b> ');
document.write(navigator.appName + ' ');
document.write(navigator.appVersion);

var isMac = 0;
var isWin = 0;
var isOtherOS = 0;

if (navigator.appVersion.indexOf('Mac') != -1) {isMac = 1;}
else { 
if (navigator.appVersion.indexOf('Win') != -1) {isWin = 1;}
else {isOtherOS = 1; }
}

document.write('<br><br>');
if (isMac) {document.write('This Browser is running in the M-
   ac OS.');}
else { 
if (isWin) {document.write('This Browser is running in the M-
   icrosoft Windows OS.');}
else { 
if (isOtherOS) {document.write('RESISTANCE IS FUTILE...YOU W-
   ILL BE ASSIMULATED');}
}}

</script>
  </body>

</html>