views:

659

answers:

2

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

Is there any way to make javascript run on attached files in the iphone mail application?

+2  A: 

JavaScripts is supported in MobileSafari browser but not in the mail.

I think that to run JavaScript in the way you want you'd have to open the website in the browser. Cannot think of any other way of doing it.

Artur
+2  A: 

No. Like just about every e-mail client still in existence, JavaScript etc. will be blocked.

Including JS code may actually prevent your e-mails from being delivered - <script> tags will likely raise a warning flag in most anti-spam filters.

ceejayoz