Iphone mail won't display javascript in html attachments?

When I attach an HTML file to an email and then email it to my iphone, I can view the file fine. However, none of the javascript in the file seems to run - not even simple things like showing / hiding divs triggered by onClick events.

Is there a way to make javascript work with attachments in iphone mail app?

0


a source to share


3 answers


JavaScripts are supported in MobileSafari browser, but not by mail.



I think that in order to run JavaScript the way you want, you will need to open the website in a browser. Can't think of any other way to do this.

+2


a source


No. Like every email client that still exists, JavaScript, etc. Will be blocked.



Including JS code can actually prevent the delivery of your emails - tags <script>

will likely raise the warning flag in most anti-spam filters.

+1


a source


Maybe you can possibly get some of the interactivity you want with CSS. This is tricky because elements never get: hover, but you can attach behavior to: target and: active states to get some pretty nice interactivity that works in Mail on iPhone, iPad, and Mac Mail. (However, people who read mail in gmail will have it all.)

+1


a source







All Articles