Why DHTML behavior not work in IE8 if document.write is executed in <head>?
问题 We have a 3rd party web application which works on in IE6, but not works in IE8. The sample code is like below, the "message from .htc" message will popup in IE6, but not popup in IE8. test.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> <script type='text/javascript'> //if comment the following line, or move this script in <body>, //then HTC will work in IE8 document.write ("<h1>document.write() in <head></h1> some