質問

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()">
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top