Javascript examples for Browser Object Model:Window open
append a page's URL to a social media 'sharing' URL
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script> function shareOnLinked(url, title, summary) {//ww w. j ava 2s . c om window.open('http://www.linkedin.com/shareArticle?mini=true&url='+ url +'&title='+title+'&summary='+summary); } </script> <a href="#" onclick="shareOnLinked("http://java2s.com","Gideon","Some Summary");"> Share On Linked in</a> </body> </html>