Displaying a Twitter Tweet Button with Valid HTML
- 10 October, 2011 -
- Twitter Dev -
- Tags : Social Plugins, Twitter
- 1 Comment
Here is some code that allows you to have a HTML Valid Twitter tweet button?
Move the code into a document.write JS function and it will all validate.
<script type="text/javascript">
/* <![CDATA[ */
document.write('<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.shanejones.co.uk" data-text="Some message to post" data-count="horizontal" data-via="shanejones">Tweet</a>');
/* ]]> */
</script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
Thanks for the code am trying to to put it on. Social media edinburgh website is nice too.