Twitter test page

Xah Lee, 2011-07-12

Twitter follow button, using JavaScript

code:

<a href="https://twitter.com/xah_lee" class="twitter-follow-button">Follow @xah_lee</a>
<script src="http://platform.twitter.com/widgets.js"></script>

your browser shows:

Follow @xah_lee

Twitter follow button, using iframe (but actually require JavaScript too)

code:

<iframe allowtransparency="true" frameborder="0" scrolling="no"
 src="http://platform.twitter.com/widgets/follow_button.html?screen_name=xah_lee"
 style="width:300px; height:20px;"></iframe>

your browser shows:

Twitter “Web Intents”

this lets visitors {Tweet, Retweet, Reply, Favorite} a tweet, right on your website.

code:

<script src="http://platform.twitter.com/widgets.js"></script>
<p><a href="https://twitter.com/intent/tweet?in_reply_to=51113028241989632">Reply</a></p>
<p><a href="https://twitter.com/intent/retweet?tweet_id=51113028241989632">Retweet</a></p>
<p><a href="https://twitter.com/intent/favorite?tweet_id=51113028241989632">Favorite</a></p>

your browser shows:

Reply

Retweet

Favorite

Back to Xah's Web Dev Tutorial (HTML, CSS, JavaScript).