首先打开ietester的DebugBar,切换到脚本标签,可以看到最下面一栏有个输入框,注释写着”// Javascript 控制台”,
var s = document.createElement("script");
s.src = "http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js";
s.type= "text/javascript";
if(document.all){
   s.onreadystatechange = function(){
    if(this.readyState == "loaded" || this.readyState == "complete"){
     alert("loaded success in ie");
    }
   }
} else {
   s.onload = function(){
    alert("load success");
   }
}
document.body.appendChild(s);


firebug.init();