本来脚本,activeX控件都是很好的东西,就是有些人死钻空子搞些安全问题出来,
所以安全提示什么的搞的挺麻烦

解决方案 »

  1.   

    try
    window.showModalDialog("javascript:new function(){window.open('','','');window.close()}",null,"")
      

  2.   

    TRY:
    <SCRIPT language="javascript">
    function openw(){
    window.showModalDialog("javascript:new function(){window.open('t.htm','','width:300px;height:200px;');window.close()}")
    }
    </SCRIPT>
    <input type="button" value="open win" onclick="openw();" />
      

  3.   

    以上测试不会被GOOGLE工具栏阻止。
      

  4.   

    还是用A吧:
    function ow(obj,w,h){
    window.open(obj.href,'null','width='+w+',height='+h);
    return false;
    }
    <a href="t.htm" onclick="return ow(this,300,200);">open win</a>