Custom Tweet Button

Create a custom tweet button with javascript support

by Nuno Oliveira

HTML

<script src="https://platform.twitter.com/widgets.js"></script>
<a href="https://twitter.com/intent/tweet">Tweet</a>

JavaScript

twttr.events.bind('tweet', function (event) {
      // Do something there
      alert('Tweeted');
    });