December 18, 2011
How to create a 'Share on Google plus' button
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:
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:
Post Comments (Atom)
Google Plus Benefit of this feature is that there may be information that you don't want to share with everybody. Circles may include friends, family, friends from work, acquaintances, relatives, etc. This Google Plus Feature is easier to use than Facebook groups. All you do is drag the contact and place him or her into the circle.
ReplyDeletebuy google followers