附代码:
<html>
<head>
<title></title>
</head>
<object id=closes type="application/x-olebject"  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="command" value="close">
</object> <script language="JavaScript1.2">
<!--
 
var width=790;
var height=545;
var status = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height;
function OpenWindows(url,widthx,heighx){
var newwin=window.open(url,'',status);

return false; 
}
closes.Click();
OpenWindows("index.jsp");//-->
</script>

解决方案 »

  1.   

    可能是这一段的问题:
    <object id=closes type="application/x-olebject"  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="command" value="close">
    </object>你这个还不如用模式窗口形式来打开!
    window.showModalDialog('index.jsp','名称','dialogWidth:330px;dialogHeight:400px;status:no');
      

  2.   

    谢谢楼上的,不过我要自动关闭原来的窗口,用window.close();就会弹出提示要关闭窗口吗?我不想要这个提示,如果用到closes.Click();就会出现上面的问题中那样的提示,请问怎么解决?