Simple Tutorial to Create LinkedIn Share Popup Window.
Sharing Any article on linkedin via your site or a web page is very simple. just follow below simple steps. linkedpopup() functions create a popup window for sharing content.
function linkedpopup()
{
var url1='http://www.linkedin.com/ shareArticle?mini=true&url= <LINK_TO_SHARE>& title=<TITLE_TO_SHARE>&summary=<DESCRIPTION_TO_SHARE>& source=<YOUR_WEBSITE_NAME>';
newwindow=window.open(url1,' <TITLE_OF_POPUP>','height=450,width=650');
if (window.focus) {newwindow.focus()}
}
Parameter List:--
Parameter | Character Limit | Description | ||
---|---|---|---|---|
mini | 4 | Must always be true | ||
url | 1024 | The permanent link to the article. Must be URL encoded | ||
title | 200 | The title of the article. Must be URL encoded | ||
source | 200 | The source of the article. Must be URL encoded. Example: Wired Magazine | ||
summary | 256 | A brief summary of the article. Must be URL encoded. Longer titles will be truncated gracefully with ellipses. |
Note :- You can use encodeURIComponent('Text To Encode') javascript function to encode text into url format.
0 comments :