twitter share button

by ajinkyax

HTML

<a href="https://twitter.com/share?url=http://www.google.com&text=This is awesome!">Tweet</a>

JavaScript

window.open('http://twitter.com/share?url=' + link + '&text=' + encodeURIComponent(message), 'twitterwindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');