location.href = value == 0 ? "a.htm" : "b.htm";

解决方案 »

  1.   

    JS的代码如下:
    <script>
    function TiaoZhuan(){
    if (document.V_concon.value==0){
     window.location.href="A.htm"
    }else{
     window.location.href="B.htm"
    }}
    </script>用这个来调用:
    <input type="submit" name="Submit2" value="提交" onClick="TiaoZhuan()">请问哪里错了,请高手指点!
      

  2.   

    放到服务器端不行马?
    Response.Redirect
      

  3.   

    if()
     {
       window.location.href='a.html';
     }
    else
    {
      window.location.href='b.html';
    }
      

  4.   

    top.location=confirm("跳到XXX?")?"a.html":"b.html";