Skip to content

Instantly share code, notes, and snippets.

@iAmServer
Forked from McKinneyDigital/share-linkedin.js
Created December 5, 2017 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iAmServer/1d7866c6683d159093a5a2b2005333d9 to your computer and use it in GitHub Desktop.
Save iAmServer/1d7866c6683d159093a5a2b2005333d9 to your computer and use it in GitHub Desktop.
Share to Linkedin using Javascript
// Opens a pop-up with a Linkedin share dialog
var url = "http://google.com";
var title = "Replace this with a title.";
var text = "Replace this with your share copy.";
window.open('http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(url), '', 'left=0,top=0,width=650,height=420,personalbar=0,toolbar=0,scrollbars=0,resizable=0');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment