This is because:
In IE, in the process of loading documents, the entire HTML document's DOM structure has not yet been generated intact, while the executing JS has created a new DOM node, resulting in the structure of the DOM tree disorder.
Error-prone wording:
Copy Code code as follows:
<title> xxxxxxxxxxxx </title>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<meta name= "Author" content= "Maple rock, Cnlei"/>
<meta name= "Copyright" content= "cnlei.y.l@gmail.com, http://www.cnlei.com"/>
<meta name= "keywords" content= ""/>
<meta name= "description" content= ""/>
<body>
Xxxxxxxxxxxxxxxxxx
<script type= "Text/javascript" >
<!--
(function init () {
$WIN (). Create ({//create a complex HTML structure
ID: "Lwindow_reg",
Title: "Register a new user",
Type: "AJAX",
InnerHTML: ' ex_reg.html '
},{
Top: "50px",
Left: "270px",
Width: "560px"
});
})();
-->
</script>
Xxxxxxxxxxxxxxxxxx
</body>
Workaround:
Copy Code code as follows:
<title> xxxxxxxxxxxx </title>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<meta name= "Author" content= "Maple rock, Cnlei"/>
<meta name= "Copyright" content= "cnlei.y.l@gmail.com, http://www.cnlei.com"/>
<meta name= "keywords" content= ""/>
<meta name= "description" content= ""/>
<body>
Xxxxxxxxxxxxxxxxxx
<script type= "Text/javascript" >
<!--
(function () {
function init () {
$WIN (). Create ({//create a complex HTML structure
ID: "Lwindow_reg",
Title: "Register a new user",
Type: "AJAX",
InnerHTML: ' ex_reg.html '
},{
Top: "50px",
Left: "270px",
Width: "560px"
});
};
if (! DWS. Bv.isie) {//non-IE browser direct initialization
Init ();
} else {
ie, prevent browser from prompting "Internet Explore cannot open Internet site aborted operation"
if (document.readystate== "complete") {
Init ();
} else {
Document.onreadystatechange=function () {
if (document.readystate== "complete") init ();
}
}
}
})();
-->
</script>
Xxxxxxxxxxxxxxxxxx
</body>