window.open(url,name,features.replace);
openfullwindow('aa.htm','js')打开一个全屏幕窗口
window.close();关闭窗口

解决方案 »

  1.   


    <input type="button" value="打开新窗口" onClick="JavaScript:window.open('aaa.php','_blank','width=300,height=300');"><input type="button" value="本窗口" onClick="JavaScript:window.self.location='aaa.php';"><input type="button" value="父窗口" onClick="JavaScript:window.parent.location='aaa.php';"><input type="button" value="其他窗口" onClick="JavaScript:window.窗口名.location='aaa.php';"><input type="button" value="关闭" onClick="JavaScript:window.parent.close();">
      

  2.   

    <form  align="center" method="post" action="make.php">
    .........
    <input type=submit name="ok" value="下 单">&nbsp;
    <input type=submit name="tj" value="统 计">&nbsp;
    <input type=submit name="qk" value="清 空"      onClick="JavaScript:window.open('aaa.php','_blank','width=300,height=300');">>
    </form>
    这样会出现什么情况?会出错么?
    是不是要把第三个submit改成button
    ?如果改成button的话,点击应该不会执行action="make.php"吧?
      

  3.   

    可以这样:
    theForm为form的name<input type="button" onClick="JavaScript:window.open('aaa.php','_blank','width=300,height=300');document.theForm.submit();" name="qk" value="清空">
      

  4.   

    <script>
    function opensubmit(){
    if(document.theForm.inputname.value=''){
    alert("数据验证不有误则不提交");
    return false;
    }
    window.open('aaa.php','_blank','width=300,height=300');document.theForm.submit();
    }
    </script>
    <input type="button" onClick="JavaScript:opensubmit();" name="qk" value="清空">
      

  5.   

    <head>
    <script language=vbs>
    function readly_onclick()
         if myform.pinput.value="" then
                  msgbox"请输入内容",4096,"检查"
                  exit function
         else
                  myform.submit()
         end if
    end function
    </script>
    </head>
    <form name=myform method="post" action="make.php">
    <input type=text name=pinput>
    <input type=button name=readly>
    </form>