Can I use a Click to Print button in an email newsletter?

▼魔方 西西 提交于 2019-12-11 01:56:19

问题


I'm wondering, is it possible to use a Click To Print button in an email newsletter? Similar to the window.print() method, but I'm not sure if emails can contain javascript?


回答1:


I don't think so, and if it is, it's not advised. I'm not sure if you tried Googling your question first, but check this out. Also, this. You could redirect them to a webpage containing the javascript. That might work.




回答2:


not that I can think of.

Alternative: Do you have the newsletter duplicated on your site for those that might "click here if you can't see this email correctly"?

You could add a querystring to the URL (http://www.mysite.com/newsletter1.htm?print=yes) then check the URL in javascript and fire off the window.print if the querystring is there.

?



来源:https://stackoverflow.com/questions/17491255/can-i-use-a-click-to-print-button-in-an-email-newsletter

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