Try it out

This is a simple demo. Share this page to Twitter


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=""
  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("", "text/uri-list", url);
    window.navigator.startActivity(intent, function(data) {});
  }, false);