I want to save an HTML file to disk, and make it possible to be opened in most browsers without warnings (no web-server scenario).
For IE normally I used to go with "mark of the web", which was safely ignored by most browsers (in particular, by Firefox and Chrome). IE after finding this mark of the web also behaved properly and did not display any warnings. You can check more on what mark of the web is in MSDN.
Now the problem. Microsoft Edge after seeing this "mark of the web" shocks and stops executing included javascripts files. What the hell ?! If I remove the "mark of the web" and open file in Edge, it opens normally (without warnings, and javascripts are executed).
Can I make both IE and Edge work for the same file?
index.html
<!DOCTYPE html>
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<script src="foo.js" ></script>
</head>
<body>
</body>
</html>
foo.js
alert('i am executed');
The above does not execute in Edge at all (if opened from file system)! How to make it happen?