Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is there a way to embed the Google +1 (plus one) button without the use of JavaScript or an iframe? Don't care about the counter of other people who also clicked the plus one since that's probably only something you can pull from the JavaScript version.

Google runs you through a wizard to add the +1 button to your website. What's generated is a few lines of JavaScript that your site/page needs to include in order to display the button.

For other sites like Twitter, delicious, reddit and even Facebook, you can send a link only version of their version of crowdsourcing social happy times.

You can also make that an inline version to send in emails or even drop in forums. Something you'd also be able to drop into a Tumblr post or such where they might not let you include either JavaScript or iframes in posts.

Is there a workaround to having an inline, non JavaScript or iframe version, of the Google +1 button?

share|improve this question
    
What's wrong with using the javascript? The alternative would be to use an <iframe>, which is usually regarded as worse. –  Eric Jun 5 '11 at 13:45
    
Don't like the extra wait time that happens with JavaScript files. Yes, they're Google. But sometimes, people also run NoScript and whatnot. Plus, being able to fold it into an image sprite helps. @eri –  Eight Days of Malaise Jun 6 '11 at 1:17
add comment

1 Answer

up vote 11 down vote accepted

A standard, simple hyperlink way of +1ing something (and sharing to Google+) is now making the rounds on blogs (couldn't find an official source, so it may still be undocumented):

https://plusone.google.com/_/+1/confirm?hl=en&url=%URL

Replace %URL with the URL. This is what shows up in the Google+ stream:

Google+ URL post

share|improve this answer
    
If you don't enter something, do you know where it even shows up? –  Eight Days of Malaise Nov 2 '11 at 3:08
1  
Also things from here: stackoverflow.com/questions/7157411/… –  Eight Days of Malaise Jul 28 '12 at 17:30
1  
@EightDaysofMalaise Whoops, completely missed your comment from forever ago. The SO link describes it, but yeah: you know where it shows up because there's a confirmation screen when you use completed URL (if you don't fill in the URL parameter, it returns a 404). –  user10884 Jul 28 '12 at 21:21
2  
Doesn't seem to work anymore. –  pixeline Sep 9 '12 at 19:54
add comment

protected by Community Nov 3 '11 at 13:55

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.