用confirm(),alert()只有一个参数,并且只有“确定”按钮,confirm(),可以选择“确定”或者“取消”

解决方案 »

  1.   

    llcnllcn(离开以后)
    让取消返回怎么弄?
      

  2.   

    isConfirm=confirm("...");
    if 按了确定 then{
       isConfirm = 真
    }
    else{
       isConfirm = 假
    }
      

  3.   

    if (confirm("aaa"))
    {  按,确定
    }
    else
    {
      按,取消
    }
      

  4.   

    llcnllcn(离开以后)
    让取消返回怎么弄? 
    返回什么?
      

  5.   

    这种问题都问,唉if (confirm())
    {
    location = "";
    }
    else
    {
    history.back()
    }
      

  6.   


    不要哭,不要哭,哭得我的心好烦呢。<a href="hehe.htm" onclick="return okok()">变!</a><script language="JavaScript1.2">
    <!--
    function okok(){
    if (confirm("真的要变?")) return true;
      return false;
    }
    //-->
    </script>其他的你可以举一反三,再不懂再找我。