<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Html welcome you</title>
</head>
<body>
<script language="JavaScript">
document.write("<CENTER>您的浏览器是: " +navigator.appName + " " + navigator.appVersion
+"<CENTER>")
</script>
</body>
</html>
navigater是浏览器对象,appName是提供字符串形式的浏览器名称,appVersion是反映浏览器的版本号。