title: How to add my app to the protocol handler list of chrome?
body: <p>I have Chrome installed and I would want to add my windows store app protocol to the protocol_handler. I want to know if there is any way to do with javascript . I want for every person visiting my page, ask to add my apps protocol to that list and then launch an external app with some arguments. I have searched for 6 hours, found that there is a way to add a protocol handler in Chrome, web+, but this is only for web apps, and does not work for external apps. I tried this but doesn't work: </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;
          Iframe test
      &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a href="ms-windows-store:PDP?PFN=19185FernandoUrkijoCerced.MyTrip_q1p7rzex4ekjr"&gt;Open in "My App"&lt;/a&gt;      
   &lt;script type="text/javascript"&gt;
          function register() {     
              navigator.registerProtocolHandler("web+myTrip",  "myTrip:place:/%s", "title");
              document.getElementById("iframeTest").src = "myTrip:place:/m/0942y1";
          }
  &lt;/script&gt;
  
   &lt;p&gt;&lt;input type="button" value="Run ad hoc test"
    onclick="register()"&gt;
    &lt;iframe id="iframeTest"/&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is the list where I want to add my protocol, you can locate on c:\Users|[local user]\AppData\Google\Chrome\UserData|LocalState: </p>
  
  <pre><code> "protocol_handler": {
    "excluded_schemes": {
       "afp": true,          "data": true,          "disk": true,          "disks": true,          "file": true,          "hcp": true,          "javascript": true,          "magnet": false,          "mailto": false,          "ms-help": true,          "ms-windows-store": false,         
       "news": false,          "nntp": true,          "shell": true,          "snews": false,          "unknown": false,          "vbscript": true,          "view-source": true,          "vnd": {
          "ms": {
             "radio": true
          }
       }
    }
  </code></pre>
  
  <p>I only want to insert my protocol </p>
  
  <pre><code> "mytrip": false, 
  </code></pre>
  
  <p>If I modify the file manually it works, but I has to be bia Javascript &amp; HTML.</p>
  
  <p>Any ideas?</p>