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.

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?

Screenshots:

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.

add comment

1 Answer

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
1  
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? –  Capt.Nemo 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
1  
@Mxx 1) Perhaps they are and 2) Perhaps they try –  gerrit Mar 3 '13 at 11:17
show 2 more comments

Your Answer

 
discard

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.