最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to embed functionality into HTML email? - Stack Overflow

programmeradmin2浏览0评论

We want to let users click a thumbs up or thumbs down button from an HTML email, without causing the clicking to open a browser window.

Is there a way to essentially embed limited web functionality (i.e., clicking an icon, showing confirmation) within HTML emails?

Thanks!

We want to let users click a thumbs up or thumbs down button from an HTML email, without causing the clicking to open a browser window.

Is there a way to essentially embed limited web functionality (i.e., clicking an icon, showing confirmation) within HTML emails?

Thanks!

Share Improve this question asked Mar 25, 2010 at 23:58 CrashalotCrashalot 34.5k62 gold badges282 silver badges460 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 12

I'm afraid such functionality, while theoretically possible, wouldn't be very practical given that most email clients strip out or disable JavaScript in order to prevent malicious code execution or other security issues. Your best bet is to use an image that looks like the thumbs up or thumbs down and then links directly back to your website. The browser window will still need to be opened, but you'll at least achieve the main part of your goal.

The short answer is no, not reliably across email clients. Usually with something like this I'd embed an image that looked like your functional element and just have it link to a web page that has that functional element.

发布评论

评论列表(0)

  1. 暂无评论