Вообщем стоит задача всю все ресурсы страницы сохранить одним файлом - т.е. удобно использовать MHTML файл.
И тут возникает проблема - не работает javascript, например в Chrome пишет:
Blocked script execution in 'file:///....mht' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
Как установить разрешение для скриптов?
часть кода:
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="_SEPARATOR_"
--_SEPARATOR_
Content-Type: application/javascript
Content-Transfer-Encoding: quoted-printable
Content-Location: http://containerHeadJS.js
function spolerBottom(obj){ ... }
--_SEPARATOR_
Content-Type: text/html;
charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://hhh.html
<HTML>
<HEAD>
<SCRIPT src="http://containerHeadJS.js"></SCRIPT>
</HEAD>
<BODY>
<div>
...