Showing posts with label google plus share button. Show all posts
Showing posts with label google plus share button. Show all posts
December 18, 2011
How to create a 'Share on Google plus' button
1 comment:
Author:
tec
at
12/18/2011 11:51:00 am
Labels:
google plus share button,
projects,
share on google plus button
We have seen websites sporting a 'Share on Facebook' button but I've not stumbled across any website that let's you share something on Google plus by simply clicking a button. Like Facebook's like button, Google has provided webmasters with a +1 button but that only let's you +1 it i.e you can not post your views, opinions whiling pressing the +1 button on a website.
Now you can add a button that allows users to share your website and their opinions on Google plus. Here's how:
This is the Javascript function:
Now you can associate this function to onclick event of any button or image and let users share you website on G+ like they do on Facebook.
Example:
Read More
Now you can add a button that allows users to share your website and their opinions on Google plus. Here's how:
This is the Javascript function:
function shareOnPlus(content){ window.open('https://m.google.com/app/plus/x/?v=compose&content='+content); }
Now you can associate this function to onclick event of any button or image and let users share you website on G+ like they do on Facebook.
Example:
<img src="icons/google_plus.png" alt="Share on Google plus" onclick="shareOnPlus('Interesting article at technoslab.blogspot.com');" />
Share on Google plus
Subscribe to:
Posts (Atom)