I send out an email which has an html attachment. Some recipients read the mail on a specific web portal (NHS webmail, which is MS Exchange), and try to save the attachment from the portal. However, the JavaScript is silently stripped out of the attachment, and the recipient ends up with a blank page. All script tags are stripped out- even links to external scripts.
Question: are there any smarts I can put in the html, so that the user is notified that they have a useless page, instead of ringing me to ask why there’s nothing on it? I know it’s a long shot, but I don’t know much html, and I thought it was worth a try. If it helps, the user is unlikely to be using IE6, IE7, or IE8.
Thanks.
Create a tag:
<div id="noScriptsFound">Sorry, your page is messed up by your lame mail agent. Please download it in some other way</div>Then add a script (directly after the
divto execute asap):Now, if something cuts off your ‘script’ tags while saving an attachment, the browser will not execute the script tag, therefore the text will remain visible.