Oracle神諭

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            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
          主站蜘蛛池模板: 铜陵市| 皮山县| 张家港市| 溧阳市| 宣化县| 金华市| 安新县| 蒙阴县| 正定县| 沅陵县| 镶黄旗| 建始县| 含山县| 梅州市| 西安市| 长子县| 休宁县| 昌图县| 永丰县| 鲁山县| 贡觉县| 丘北县| 从江县| 石嘴山市| 大方县| 伊金霍洛旗| 贡觉县| 彰化县| 疏勒县| 天峨县| 张家界市| 台北市| 福泉市| 林西县| 富川| 黄冈市| 秀山| 河北省| 莱西市| 武鸣县| 油尖旺区|