[問題] 關於navigator的問題
看板Web_Design作者FactoryBoss (Feeling-Making Factory)時間19年前 (2007/03/08 13:41)推噓0(0推 0噓 0→)留言0則, 0人參與討論串1/1
我最近在練javascript,於是我跑了一個網頁,網頁內容如下:
<html> <body bgcolor=oldlace>
<script>
document.write(navigator.appCodeName + "<br>")
document.write(navigator.appName + "<br>")
document.write(navigator.appVersion + "<br>")
document.write(navigator.language + "<br>")
document.write(navigator.platform + "<br>")
document.write(navigator.userAgent + "<br>")
</script> </body> </html>
我很好奇地分別用火狐跟ie7去跑
用火狐跑的結果如下:
Mozilla
Netscape
5.0 (Windows; zh-TW)
zh-TW
Win32
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.1.2) Gecko/20070219
Firefox/2.0.0.2
用ie7跑的結果如下:
Mozilla
Microsoft Internet Explorer
4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon; .NET CLR 1.1.4322; .NET
CLR 2.0.50727)
undefined
Win32
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
看了之後我開始納悶了,ie7跟Mozilla會有關係????火狐跟Netscape會有關係???
--
我的工廠在
http://feeling-making.blogspot.com/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.51.92