Oracle神諭

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks

          The Navigator object (named after the Netscape web browser, of course) has variables that specify the name and version of the browser that is running, as well as variables that identify the platform on which it is running. These variables allow scripts to customize their behavior based on browser or platform, so that they can take advantage of extra capabilities supported by some versions or work around bugs that exist on some platforms.

          userAgent
             The string that the browser sends in its USER-AGENT HTTP header.This property typically contains all the information in both appName and appVersion.

          eg.
           this.isIE = navigator.userAgent.toLowerCase().indexOf("msie") >= 0;

          posted on 2006-01-14 09:55 java世界暢談 閱讀(377) 評論(0)  編輯  收藏 所屬分類: Javascript
          主站蜘蛛池模板: 凤凰县| 禄丰县| 松潘县| 赣榆县| 淅川县| 祁门县| 益阳市| 商洛市| 凉城县| 夏邑县| 内江市| 堆龙德庆县| 五台县| 九江县| 福建省| 江津市| 咸丰县| 闽清县| 安图县| 瓦房店市| 南通市| 西城区| 大关县| 万载县| 娄烦县| 顺平县| 安乡县| 山西省| 古蔺县| 客服| 潮州市| 晋州市| 眉山市| 新平| 民县| 博白县| 德令哈市| 穆棱市| 新建县| 台前县| 道孚县|