html> head> script type="text/javascript"> !-- function load1(){ var Content= document.getElementById("Content"); alert("load1"); } function load2(){ var Content= document.getElementById("Content"); Content.innerHTML="load2:script>load1();\/script>"; }
function load3(){ var Content= document.getElementById("Content");
//之前如果没有有效的Text标签,IE就会出错.但FireFox可以正常运行,神啊,救救IE吧 var str="a>Javascript必须在有效的Text标签之后/a>script type=\"text/javascript\">load1();\/script>"; Content.innerHTML=str; var regExp=/script.*>(.*)\/script>/gi; if(regExp.test(Content.innerHTML)){ eval(RegExp.$1); }