Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google +1 button as a link?

Can you have the Google +1 button as a simple link?

Like

<a href="http://google.com/+1/url=http://mysite.com" class="google-plus1">
  + 1
</a>

i don't like iframes

like image 913
Google Avatar asked Nov 04 '22 18:11

Google


1 Answers

To avoid iframes, you may use this: +1 your website

Code for +1'ing http://www.example.com:

<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

<!-- Place this tag where you want the +1 button to render -->
<g:plusone href="http://www.example.com"></g:plusone>
like image 71
lobner Avatar answered Nov 09 '22 08:11

lobner