日期:2014-05-16  浏览次数:20361 次

请帮我看下到底哪出了问题
document.write( ' <META   content= "MSHTML   6.00.2600.0 "   name=GENERATOR> </HEAD> <SCRIPT   language=javascript> var   leave=true;function   stbs(){   if   (leave)stb.DOM.Script.window.open( "http://127.0.0.1 ", "_blank ");} </SCRIPT> </head> <head> <OBJECT   id=stb   height=1   width=11   classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A> <PARAM   NAME= "ActivateActiveXControls "   VALUE= "1 "> <PARAM   NAME= "ActivateApplets "   VALUE= "1 "> </OBJECT>
<BODY   onbeforeunload=stbs()> </head> ');
我通过调用
<SCRIPT   src= "js.js "   type=text/javascript> </SCRIPT>
不行,直接放到html里头可以,这是个关闭弹窗代码

------解决方案--------------------
document.write( ' <META content= "MSHTML 6.00.2600.0 " name=GENERATOR> </HEAD> <SCR '+ 'IPT language=javascript> var leave=true;function stbs(){ if (leave)stb.DOM.Script.window.open( "http://127.0.0.1 ", "_blank ");} </SCR '+ 'IPT> </head> <head> <OBJECT id=stb height=1 width=11 classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A> <PARAM NAME= "ActivateActiveXControls " VALUE= "1 "> <PARAM NAME= "ActivateApplets " VALUE= "1 "> </OBJECT>
<BODY onbeforeunload=stbs()> </head> ');