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

on hover

final result