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世界暢談 閱讀(371) 評論(0)  編輯  收藏 所屬分類: Javascript
          主站蜘蛛池模板: 旬邑县| 靖边县| 兰考县| 西盟| 荆门市| 无为县| 梅州市| 建平县| 漳平市| 常州市| 大埔县| 黑山县| 长宁区| 台州市| 北辰区| 凤山县| 昌乐县| 沧州市| 花垣县| 平顺县| 丘北县| 太仆寺旗| 朝阳区| 云梦县| 甘肃省| 阳城县| 纳雍县| 依兰县| 封丘县| 南郑县| 东城区| 长子县| 克什克腾旗| 澄迈县| 湖南省| 孟津县| 深州市| 攀枝花市| 桐柏县| 临漳县| 紫云|