Simple Tutorial to Create Twitter Share Popup Window.
tweetpopup() function helps your visitor to create popup for tweeting content and connect on twitter.
function tweetpopup()
{
var url2='https://twitter.com/intent/tweet?hashtags=<HASHTAG>&text=<TEXT_TO_TWEET>&url=<URL_TO_TWEET>&via=<HANDLE_FOR_TWEET>';
newwindow=window.open(url2,<TITLE_OF_POPUP>','height=450,width=650');
if (window.focus) {newwindow.focus()}
}
Note :- You can use encodeURIComponent('Text To Encode') javascript function to encode text into url format.
0 comments :