My client wants me to transfer his website to a CD so that he could give a copy to his customers and they can view his site offline.
Yeah, I told him how ridiculous that is but he doesn't care.
However, when I transfer the site from the web server to any offline folder in Internet Explorer there is a Javascript security warning which I don't want to appear. So I add 'mark of the web' to the top of every html document
and the Javascript security warning dissapears but in IE no links will open!HTML Code:<!-- saved from url=(0014)about:internet -->
Test file with some blank Javascript:
So if I leave out mark of the web at the top then security warnings appear but with the file as it is above links won't open, all in IE.HTML Code:<!-- saved from url=(0014)about:internet --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1250" /> <script language="JavaScript" type="text/javascript"> </script> </head> <body> <div><a href="123.html">Some link</a></div> </body> </html>
How do I transfer the site to the CD so that security warnings don't open in IE and links open normally?
I've tested this on MSIE 7 and on a MSIE 6 inside a virtual machine so I know the problem isn't isolated to my particular system.






Bookmarks