appName 属性可返回浏览器的名称。
navigator.appName
所有主要浏览器都支持 appName 属性
返回浏览器的名称:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Web176教程(Web176.com)</title> </head> <body> <script> document.write("浏览器名称: " + navigator.appName); </script> </body> </html>