Try it out

This is a simple demo. Share this page to Twitter

Registration

It is simple to set up an app to be able to handle incoming data. This Twitter bridge was written to let you share your url's directly to Twitter.

<intent action="http://webintents.org/share"
  type="text/uri-list"
  href="twitter_inline.html"
  disposition="inline" />

The above tag just needs to be placed on your page, with a "href" of the page you want to be opened and now your page will be able to be launched via the Web Intent system when a user invokes the "share" intent.

How to share the link

The code for invoking the "share" intent is below.

  var link = document.getElementById("linkToShare");
  var share = document.getElementById("shareButton");
  share.addEventListener("click", function() {
    var url = link.value;
    var intent = new Intent("http://webintents.org/share", "text/uri-list", url);
    window.navigator.startActivity(intent, function(data) {});
  }, false);
{