但不要在<form action="">的action=""中指定页面

解决方案 »

  1.   

    <script>
    function check()
    {
        //在你的check的最后入下以下.代码.
        window.location.href="demo.asp";
    }
    </script>
    <input type="submit" class="text" name="appd" value="&iquest;&ordf; &Iacute;¨" onclick="return check()">
      

  2.   


    <script>
    function check()
    {
        //在你的check的最后入下以下.代码.
        location.href="next.html";
    }
    </script>
    <input type="submit" class="text" name="appd" value="&iquest;&ordf; &Iacute;¨" onclick="return check()">
    也可以用<script>
    function check()
    {
        //在你的check的最后入下以下.代码.
    document.form1.action="next.html";
    document.form1.submbit;
        
    }
    </script>
    <fom name=form1>
    <input type="submit" class="text" name="appd" value="&iquest;&ordf; &Iacute;¨" onclick="return check()">
    </form>
      

  3.   

    <script language="javascript">
                  function check(){
    var re=/^[0-9.]+$/;
    var y=0;
    var z=0;
    <?for($x=1;$x<=$j;$x++){?>
                         if(document.form1.checks<?=$x?>.checked){
        var str=document.form1.pay<?=$x?>.value;
    if(!str.match(re)){
    alert("ssss");
    y=1;
     }
     if(y==1){
     return false;

    }
    if(!document.form1.checks<?=$x?>.checked){
    z++;
     }
    <?}?>
    if(z==<?=$j?>){
    alert("ok");
    return false;
    }
    return true;
              window.location.href="dpassp.php"; 
                   }
    </script> 
    这样对不对
      

  4.   

    因为,你里面有return.
    你改成这样子吧.<script>
    function check()
    {
        var blnsub = false; //初始化用于是否提交.
        var blngo = false;  //初始化用于是否跳转.
        //这里可以用于判断..根据条件来改变 blnsub,blngo的值.
        if(blnsub)form1.submit();
        if(blngo)window.location.href="demo.asp";
    }
    </script>
    <form name="form1">
    <input type="button" class="text" name="appd" value="提交" onclick="check()">
    </form>
      

  5.   

    改成这样就可以了没有那么负责吧。
    <html>
    <head>
    <script>
    function ss()
    {
        window.open("a.htm");
    }
    </script>
    </head>
    <body>
    <input type="button" value="提交" onclick="ss()">
    </body>
    </html>
      

  6.   

    如果是在当前页面跳转非打开
    <html>
    <head>
    <script>
    function ss()
    {
        window.location.href="a.htm";
    }
    </script>
    </head>
    <body>
    <input type="button" value="提交" onclick="ss()">
    </body>
    </html>