2013-04-13 13 views

回答

4

它是採用鍍鉻web應用程序特定代碼:Inline Installation

<link rel="chrome-webstore-item" 
    href="https://chrome.google.com/webstore/detail/[app-id]"> 
button.addEventListener("click", function(){ 
    chrome.webstore.install(); 
}); 

這不會在未經驗證的網頁,也不Chrome以外的其他瀏覽器,因爲它不是normative JavaScript (ECMAScript) spec一部分。

如果您打算在您的網站上實施帶有圖像的確認框,請嘗試jQuery UI's modal dialog