最新的Web開發教程
 

Navigator product Property

<導航對象

獲取瀏覽器的引擎名稱:

var x = "Browser's Engine Name: " + navigator.product;

x的結果將是:

試一試»

更多"Try it Yourself"下面的例子。


定義和用法

產品屬性返回發動機(product)的瀏覽器的名稱。

注:按預期該屬性可能無法正常工作:所有的瀏覽器返回"Gecko"

注:此屬性是只讀的。


瀏覽器支持

在表中的數字規定,完全支持該財產瀏覽器版本。

屬性
product 11.0 15.0

句法

navigator.product

技術細節

返回值: 一個字符串,表示瀏覽器的引擎名稱

例子

更多示例

在一個示例中,所有的導航性能的演示:

var txt = "";
txt += "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
txt += "<p>Browser Name: " + navigator.appName + "</p>";
txt += "<p>Browser Version: " + navigator.appVersion + "</p>";
txt += "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
txt += "<p>Browser Language: " + navigator.language + "</p>";
txt += "<p>Browser Online: " + navigator.onLine + "</p>";
txt += "<p>Platform: " + navigator.platform + "</p>";
txt += "<p>User-agent header: " + navigator.userAgent + "</p>";
試一試»

<導航對象