<html> <head> <meta http-equiv="content-type" content="text/html;chars- et=iso-8859-1"> <title>DHTML for the WWW | Detecting the Browser Name an- d Version</title> </head> <body> <script> document.write('<b>This browser\'s designation is:</b> '); document.write(navigator.appName + ' '); document.write(navigator.appVersion); var isNS = 0; var isIE = 0; var isOtherBrower = 0; if (navigator.appName.indexOf('Netscape') != -1) {isNS = 1;} else { if (navigator.appName.indexOf('Microsoft Internet Explorer')- != -1) {isIE = 1;} else {isOtherBrow = 1;} } browserVersion = parseInt(navigator.appVersion); document.write('<br><br>'); if (isNS) {document.write('This Browser is compatible with N- etscape version ');} else { if (isIE) {document.write('This Browser is compatible with I- nternet Explorer version ');} else { if (isOtherBrowser) {document.write('I do not recognize this- browser type. Version = ');} }} document.write(browserVersion +'.'); </script> </body> </html>