How can I make an email interactive/actionable (perhaps via Javascript) by a little icon click without having to goto another website?

I read this thread:
Is JavaScript supported in an email message?

But still the question remain relevant to me.

So how does really Yammer messages are actionable in Outlook?

There are thumbs up that’s possible, there’re sometimes voting that’s possible.
And from my memory (rather bad on this one) I think Gmail too allow that to a certain extent.

Are there any libraries that can be embedded in the Email HTML construction that support this kind of feature?