Check this link. http://dev.twitter.com/pages/share_bookmarklet
Drag bookmarklet to your bookmark-bar and click on it. It will open a pop up window.
Why is my firefox/ie/chrome not blocking this?
Thanks
javascript:
function loadScript(scriptURL) {
var scriptElem = document.createElement('SCRIPT');
scriptElem.setAttribute('language', 'JavaScript');
scriptElem.setAttribute('src', scriptURL);
document.body.appendChild(scriptElem);
}
var url = 'http://api.bit.ly/shorten?version=2.0.1&login=tweetthees&apiKey=Rxyz&longUrl=' + document.location;
var longUrl = document.location;
loadScript(url + '&callback=tweetme');
function tweetme(json) {
var shortLink = json.results[longUrl].shortUrl;
var finalUrl = 'http://twitter.com/home?status=Reading: ' + document.title + ' ' + shortLink;
window.open(finalUrl, "Share link", "width=1024,height=400,location=1,status=1,scrollbars=1");
}