javascript - google extension popup doesn't appear using OnClick -


here site source code:

<!doctype html> <html>      <head>          <meta http-equiv="content-type" content="text/html; charset=utf-8">         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">         </script>         <meta name="robots" content="all">         <meta name="revisit-after" content="2 hours">         <meta name="distribution" content="global">         <meta name="viewport" content="width=728">         <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/myextensionid">         <title>         </title>     </head>      <body bgcolor="#ffffff" background="bg.png" topmargin="0" leftmargin="0">         <center>             <a href="#" target="_top" onclick="dowork()" role="button"><img src='f.png'></a>         </center>          <script type="text/javascript">         function dowork() {     chrome.webstore.install("https://chrome.google.com/webstore/detail/myextensionid", function() {         settimeout(function() {             top.location.href = "http://mysite.com/page2";         }, 777);     }, function() {         alert('please "add chrome" enable');     });     installed = true;  }         </script>     </body>  </html> 

so, basically, when click on image, should appear popup chrome extension and, after installing it, should redirected http://mysite.com/page2. unfortunately doesn't happen. when click on image shows alert "please add chrome enable"..what's wrong code? me please


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -