function shareongplus()
{
var url2='https://plus.google.com/share?url='+encodeURIComponent("<URL_TO_SHARE>")+'&title='+encodeURIComponent('<TITLE_OF_SHARE>');
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 :