title: Make a call to a custom protocol in Javascript
body: <p>I'm running a script in a UIWebView which sends data back to the host application (in Objective-C). If I put a link on the page pointing to <code>myprotocol://some_data</code>, I receive the information on the host side.</p>
  
  <p>How can I achieve the same behaviour in pure Javascript, without user interaction? Something like a AJAX call, but not over HTTP?</p>
  
  <p>I'm using AngularJS, but any solution in Javascript is welcome.</p>