用html电子邮件嵌入打印链接? [英] Embed print link with in html email?
本文介绍了用html电子邮件嵌入打印链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试了以下代码,但它不起作用。
< a href =javascript:window.print();>
< img src =reward_08.gifborder =0width =71height =52alt =PRINT>
< / a>
当我在网页中执行上述代码时,可以正常工作。
任何建议?
解决方案
一般不支持javascript。您可以将按钮/文本链接到外部页面,该页面是电子邮件的副本,并将< body>
标签更改为此
< body onload =window.print()>
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?
解决方案
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()">
这篇关于用html电子邮件嵌入打印链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文