<script language="javascript">
function page() {
if (window.navigator.userAgent.indexOf("MSIE") >= 1) {
alert("IE浏览器");
}
if (window.navigator.userAgent.indexOf("Firefox") >= 1) {
alert("火狐浏览器");
}
}
</script>
</head>
<body>
<input type="button" οnclick="page()" />
</body>
</html>
</head>
<body>
</body>
</html>