Share Bookmarklet

Overview

The Share Bookmarklet makes it easy for you to share any webpage on Twitter, even if there isn’t a Tweet Button. It works in all major browsers and is easy to install.

https://g.twimg.com/dev/documentation/image/share-bookmarklet-flow.png

Adding the Bookmarklet

To use the Share Bookmarklet, simply drag this button to the bookmarks bar or favorites toolbar in your web browser. (In some browsers you may need to go to your `View` menu to choose to show the bookmarks bar first.)

Tweet

To use the bookmarklet just browse to a page you like and then click the bookmark.

If this doesn’t work in your browser, you can create a new bookmark in your toolbar, and copy and paste the following code as its URL:

javascript:(function(){window.twttr=window.twttr\|\|{};var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('https://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='https://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());

Own your own webpage?

If you own a webpage and would like to provide a Tweet Button for your users instead of relying on them having the bookmarklet, take a look at our Tweet Button </web/tweet-button>) documentation.

Having problems?

We’ve tested in the most popular browsers and have no known issues, but if the bookmarklet isn’t working you should check your popup blocker settings. You may have a custom toolbar which is stopping the Tweet Web Intent from working.