Embed print link with in html email?

被刻印的时光 ゝ 提交于 2019-12-02 02:53:55

问题


i am trying to embed a print link with in an html email blast.

i have tried following code but it does not work.

<a href="javascript:window.print();">
<img src="reward_08.gif" border="0"  width="71" height="52" alt="PRINT">
</a>

Above code works fine when i do it within a webpage.

Any suggestions?


回答1:


Like the comments, since email clients don't generally support javascript. You can have a button/text link to an external page that is a copy of the email and change the <body> tag to this

<body onload="window.print()">


来源:https://stackoverflow.com/questions/16176806/embed-print-link-with-in-html-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!