Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I received a mail from Google+ saying that someone I knew recently joined Google+. The email had an interactive red-box which allowed me to add the user to my circles. As far as I am aware, emails do not include running javascript. How is this achieved?


The original Email

The original email

On hover

on hover

Final Result

final result

share|improve this question

migrated from superuser.com Mar 3 '13 at 12:59

This question came from our site for computer enthusiasts and power users.

up vote 4 down vote accepted

This is a specific integration between Gmail and Google+. If you'll look at those messages in a regular email client, you won't see this interactivity. Only if you read them with Gmail web ui, Android or iOS Gmail clients.

As for specifics of how it's achieved, I imagine that is Google's 'secret sauce'. :)

share|improve this answer
Are you sure? Isn't it simple HTML and CSS? Or just a bit of JavaScript? – terdon Mar 3 '13 at 7:47
@terdon look at such message with any other email client, even those that support html/css/javascript and you won't see those interactions. – Mxx Mar 3 '13 at 7:48
Is it possible for someone to reverse-engineer their "secret sauce" and run javascript inside Gmail? – Abhay Rana Mar 3 '13 at 7:51
@Capt.Nemo that's a really vague question. What exactly are you trying to do? – Mxx Mar 3 '13 at 7:52
@Mxx 1) Perhaps they are and 2) Perhaps they try – gerrit Mar 3 '13 at 11:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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