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); }