With more and more web sites and businesses embracing Twitter, it’s important to make it as easy as possible users to share content on the social networking site. That’s why I just coded up a jQuery plugin called TweetLink, which allows web developers to easily add “Tweet This Page” buttons to their site.
After the TweetLink plugin is included, when any DOM element with class=”tweetlink” is clicked, the current page’s URL is automatically shortened using bit.ly. The user is then automatically forwarded to Twitter, where their status box is already filled in with the page’s title and the shortened URL.
This plugin should make it painless for web developers to include this functionality, and easy for visitors to Tweet interesting content.