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世界暢談 閱讀(368) 評論(0)  編輯  收藏 所屬分類: Javascript
          主站蜘蛛池模板: 高要市| 彩票| 龙江县| 阜新市| 安乡县| 临猗县| 郎溪县| 沙坪坝区| 吉木乃县| 永平县| 黔西县| 醴陵市| 鱼台县| 南陵县| 无极县| 剑阁县| 莆田市| 彭阳县| 津市市| 金坛市| 石渠县| 东丰县| 炎陵县| 额敏县| 安福县| 崇阳县| 潞西市| 延庆县| 友谊县| 通榆县| 青州市| 长岛县| 宜阳县| 嘉禾县| 兴宁市| 监利县| 金寨县| 通州区| 山阳县| 淮滨县| 阿拉善左旗|