Insert This code into between the <HEAD> tags of your HTML Page.

<SCRIPT LANGUAGE="JavaScript"> <!-- function getOS(){ var os = 'X'; var v = navigator.appVersion.toUpperCase(); // ================ WINDOWS ==================== if (1+v.indexOf('WIN95') || 1+v.indexOf('WINDOWS 95') || 1+v.indexOf('WIN32')) os = 'Win95'; else if (1+v.indexOf('WIN98') || 1+v.indexOf('WINDOWS 98')) os = 'Win98'; else if (1+v.indexOf('WINNT') || 1+v.indexOf('WINDOWS NT')) os = 'WinNT'; else if (1+v.indexOf('WINDOWS 3.1')) os = 'Win3.1'; else if (1+v.indexOf('WINDOWS 3')) os = 'Win3'; else if (1+v.indexOf('WIN16')) os = 'Win16'; // might be 3.x or NT. // ================== MAC ====================== else if((1+v.indexOf('MAC')) && (1+v.indexOf('PPC') || 1+v.indexOf('POWERPC'))) os = 'Macintosh ppc'; else if (1+v.indexOf('MAC')) os = 'Mac68K'; // ================== X11 ====================== else if (1+v.indexOf('SUNOS')) os = 'Sun'; else if (1+v.indexOf('LINUX')) os = 'Linux'; else if (1+v.indexOf('IRIX')) os = 'Irix' else if (1+v.indexOf('HP-UX')) os = 'HP-UX'; else if (1+v.indexOf('OSF')) os = 'OSF'; else if (1+v.indexOf('AIX')) os = 'AIX'; // ================== Other ====================== else if (1+v.indexOf('OS/2')) os = 'OS/2'; else if (1+v.indexOf('WEBTV')) os = 'WebTv'; return os; } //--> </SCRIPT>

Insert This code into between the <Body> tags of your HTML Page.

<SCRIPT LANGUAGE="JavaScript"> <!-- document.write('Your operating system is '+getOS()+'</H3>'); //--> </SCRIPT>

1998 Copyright (C) Next Step Publishing All Rights Reserved