请讲清楚点,什么对话框
alert();
prompt();
confirm();

解决方案 »

  1.   

    alert实现不了这样的对话框功能,confirm怎么用?能不能详细一点!
      

  2.   

    <script language="JavaScript">
    <!--
    function checkdata(newstring){
      if( addform.year.value + addform.month.value + addform.newdate.value==newstring){  
         confirm(你所添加的日志可能已存在,继续!!");
        }
    return true;
     }
    // -->
      

  3.   

    <script language="JavaScript">
    <!--
    function checkdata(newstring){
      if( addform.year.value + addform.month.value + addform.newdate.value==newstring){  
         if(confirm(你所添加的日志可能已存在,继续!!")==1) 
            return true
          else
            return false
        }
     
     }