CodeworkingJavascriptArticle ≫ Twitter Share Button

Twitter Share Button

Thu 17 Sep 2015, 20:49

You just need to add this code in your page:

<a href="" class="twitter-share-button" data-via="[yourTwitterUsername]">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+'://';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

if you want to use custom button then you can make it at and you will get the code like above.

0 4180 views